image
image
Ticket Options
Question Details
TICKET ARCHIVE -> How to Start Sshd From the Command Line
shouri - Nov 16, 2005 - 7:19 pm
image
image

Hi,

The display to my computer no longer works. However, I would like to ssh into my computer and transfer files back and forth, etc.

The question of course, is, how do I turn on sshd on my macosx 10.3 machine? (blind, no display, no graphics, no mouse. Only from the terminal. I can't edit files - absolutely no visual feedback.)

I know, in linux one can easily turn on sshd by
1. becoming root by using su
2. typing in "/sbin/service sshd start"

What is the macosx 10.3 equivalent to this?

Thanks
Shouri
BjarneDM - Nov 17, 2005 - 2:27 am
image
image
On Mac OS X it's started with:
/usr/libexec/sshd-keygen-wrapper -i
which starts by taking care of creating the necessary keys needed for encrypting the connections if they don't excist and subsequently start the sshd daemon

I suppose you already need how to start in single user mode as that seems to be the only way to get at a command prompt easily in your situation.

Good Luck
--------
Bjarne D Mathiesen ; København ; Danmark
Mac OS X 10.4.2 ; 2xTiBook + 15" iMac + MacMini
shouri - Nov 22, 2005 - 9:22 am
image
image

Starting the command line was never a problem for me. I used to have quicksilver to startup at login. So all I would have to do was to blindly login (hope that I typed everything correctly), wait for the whirring of the hard drive, and then type apple-spacebar followed by x and enter to launch x11. There would be more whirring of the hard drive, and then I could even launch iTunes or something (open -a iTunes) and hit spacebar to listen to my songs... The other alternative that I could use was to login as ">console".

For some reason, I couldn't login into my machine remotely. I suspect the builtin firewall. Maybe command line starting of ssh doesn't automatically punch a hole in the firewall?

In the meantime, I have solved my problem through other means, though. I booted another computer over firewire from the blind computer. (target disk mode). And then, through the gui I could configure ssh etc. I shut it down and started the blind computer by itself and everything worked normally.

It would have been nice to find a solution, though.

-Shouri

IF THIS IS YOUR QUESTION AND YOU WISH TO RESPOND, LOGIN HERE FIRST.


Search Engine Friendly URLs by vBSEO 3.1.0