image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old May 6th, 2002, 12:45 PM
googolplex's Avatar
jeff.hume.ca
 
Join Date: Nov 2001
Location: Toronto, Canada
Posts: 1,340
Thanks: 0
Thanked 0 Times in 0 Posts
googolplex is on a distinguished road
SSH login

How can I set up SSH so that I can log in when my mac is just at the login screen and not running in a certain user. Does it work that way by default?

Also are there any clients for windows that let you log in to SSH?

I'm wanting this so I can do stuff on my mac from school on PCs and bybass the schools port-blocking onto IRC . BTW what port does SSH use?
__________________
jeff.hume.ca - go there, read it, its good.

updated daily (most of the time)
Reply With Quote
  #2  
Old May 6th, 2002, 03:16 PM
Registered User
 
Join Date: Mar 2002
Location: Denver
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
BSDimwit is on a distinguished road
You should be able to

So long as you have remote access enabled in the sharing section of your system preferences, you should be able to ssh into your mac.

As for the windows ssh clients... there are tons of them... Take a look www.tucows.com and find one that looks appealing to you...

Personally, I use a program called Putty. Its pretty small, has any bell and whistle that most folks would need and its pretty fast. All in all I would recommend it.

SSH is on port 22
Telnet is on port 23

Good luck
__________________
BSDimwit
Titanium Powerbook 550
512MB ram
Reply With Quote
  #3  
Old May 6th, 2002, 05:01 PM
Koelling's Avatar
I Think Different
 
Join Date: Oct 2001
Location: Colorado
Posts: 602
Thanks: 0
Thanked 0 Times in 0 Posts
Koelling is on a distinguished road
BSDimwit said you can and I'm sure he knows what he is talking about. what you need is for sshd (the ssh deamon) to be running. I personally thought that when you logged out it would quit this because it quits all other applications but perhaps the unix core still runs. If I get a chance to do some testing on this I'll let you know.
__________________
1 ghz pb w/ 768M RAM, 10.3.latest (usually). Yeah life is good.
Reply With Quote
  #4  
Old May 6th, 2002, 06:52 PM
googolplex's Avatar
jeff.hume.ca
 
Join Date: Nov 2001
Location: Toronto, Canada
Posts: 1,340
Thanks: 0
Thanked 0 Times in 0 Posts
googolplex is on a distinguished road
So what do I have to do to get it running on my ibook?
__________________
jeff.hume.ca - go there, read it, its good.

updated daily (most of the time)
Reply With Quote
  #5  
Old May 6th, 2002, 08:16 PM
scruffy's Avatar
Notorious Olive Counter
 
Join Date: Dec 2000
Location: Soviet Canuckistan
Posts: 1,726
Thanks: 0
Thanked 0 Times in 0 Posts
scruffy is on a distinguished road
Quote:
Originally posted by testuser
All system daemons are run as root. They continue to function without interruption during user logins and logouts.
One little quibble - actually many daemons run as special 'nobody' type users with extremely limited permissions. The idea is that if someone exploits a bug in the server, the damage they could do is limited to what the daemon user could do.

For example, apache runs as the user www, and the postfix mail daemons run as the user postfix.
__________________

What is the robbing of a bank compared to the founding of a bank?
-- Bertold Brecht
Reply With Quote
  #6  
Old May 6th, 2002, 08:25 PM
scruffy's Avatar
Notorious Olive Counter
 
Join Date: Dec 2000
Location: Soviet Canuckistan
Posts: 1,726
Thanks: 0
Thanked 0 Times in 0 Posts
scruffy is on a distinguished road
Do you mean, so you could login to your iBook from away, or so you could log into a desktop Mac from your iBook which you're lugging around?

Anyway, on the server machine:
In System Preferences > Sharing > "Application" tab, check the 'allow remote login'.

On the client machine, if it's a Mac, nothing; if it's a PC, get a ssh client.
__________________

What is the robbing of a bank compared to the founding of a bank?
-- Bertold Brecht
Reply With Quote
  #7  
Old May 7th, 2002, 01:22 AM
scruffy's Avatar
Notorious Olive Counter
 
Join Date: Dec 2000
Location: Soviet Canuckistan
Posts: 1,726
Thanks: 0
Thanked 0 Times in 0 Posts
scruffy is on a distinguished road
all the processes that I have mentioned are indeed launched from root

Hmm, that's interesting. I hadn't realized that an httpd process is run as root. Interesting though, as soon as I turn on web sharing (don't even connect once) it looks like this:

: 1 23:09; ps auxc | grep http
root 22770 0.0 0.3 2436 1016 ?? Ss 0:00.08 httpd
www 22771 0.0 0.1 2436 272 ?? S 0:00.01 httpd

And, it seems both are listening on port 80 (I didn't even realize that was possible).

: 0 23:09; sudo lsof | grep httpd | grep 80
httpd 22770 root 16u inet 0x0183b4cc 0t0 TCP *:80 (LISTEN)
httpd 22771 www 16u inet 0x0183b4cc 0t0 TCP *:80 (LISTEN)

Anyway, OS X has a "daemon" user by default, I'd be surprised if it's not used by some daemon processes. Perhaps I'm just in for a surprise ;-}

edit: silly mark, it's BB, not HTML
__________________

What is the robbing of a bank compared to the founding of a bank?
-- Bertold Brecht
Reply With Quote
  #8  
Old May 7th, 2002, 02:10 AM
blb blb is offline
`'
 
Join Date: Apr 2001
Location: CO, USA
Posts: 651
Thanks: 0
Thanked 0 Times in 0 Posts
blb is on a distinguished road
One httpd will be running as root; as on all Unix-like systems, you need root to use a port under 1024. If you set Apache to listen on a larger port (say, 8080), then you can keep it from running anything as root, but shouldn't be necessary.

ftpd will be root until a user logs in, then it should change to that user.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh -x and XForwarding into OS X from a Linux Box robpatrick Mac OS X System & Mac Software 5 February 7th, 2002 04:35 PM
SSH Daemon not allowing login jbrayton Mac OS X System & Mac Software 3 January 23rd, 2002 02:19 PM
can't tunnel my imap with ssh Shaq fu Mac OS X System & Mac Software 8 November 15th, 2001 05:48 AM
Is there a point to ssh remote login? Snyper M Apple News, Rumors & Discussion 3 November 8th, 2001 03:06 AM
What password to use with ssh remote login? DominikHoffmann Mac OS X System & Mac Software 3 October 19th, 2001 12:44 AM


All times are GMT -5. The time now is 07:19 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.