sshd basics

Jeremy C. Reed plug-discuss@lists.plug.phoenix.az.us
Mon, 5 May 2003 15:05:51 -0700 (PDT)


On Mon, 5 May 2003, eric wrote:

> But I cannot connect to the machine.  Even from within the machine, ssh -l
> root localhost says the connection is refused.  When I try to connect
> remotely, the SSH client does not ask me to accept and save the key.  I used
> to know how to configure an ssh server but I have been out of the scene for
> a while.  Can anyone help me out on this one?

On the server run sshd at a different port and with debugging on, like
"sshd -d -p 2200".

And then connect to it like "ssh -p 2200 -v user@host.name"

The server-side debugging should let you know what the problem is (if it
even reaches it).

(Also, see PermitRootLogin.)

   Jeremy C. Reed
   http://bsd.reedmedia.net/