Attention: Garrett Cooper (Was: SSH with Public Key
youshi10 at u.washington.edu
Wed Feb 1 22:30:13 PST 2006
On Feb 1, 2006, at 9:16 PM, david bryce wrote:
> On Wed, 1 Feb 2006 23:24:47 -0500, "Clayton Scott Kern"
>> What's the permissions for the .ssh directory. I had problems in the
>> past if it's not 700. There was an entry in /var/log/messages or its
>> equivalent, stating as such.
>> This would come up on new systems, because I usually had to create
>> .ssh directory and the umask would cause it to have 755.
>> Clayton Scott Kern
>> ckern1 at twcny.rr.com The software stated it required
>> UNIX System Administrator Microsoft Windows 2000 or higher,
>> FreeBSD, Linux, Solaris & so I installed FreeBSD.
> Thanks, Clayton!
> It looks like someone has installed the ssh2 package on this machine
> (using "pkg_add -r ssh2"). So this is not a standard freebsd ssh
> installation. In fact, testing on another box with freebsd 6, I
> can connect with Putty using public key authentication. Does
> anyone know how to get the standard ssh to work on this machine
> without upsetting things too much? It is currently running a
> mail server and cvs, so I'm ginger about doing anything radical
> on it. Doing a ps -ax shows that it's sshd2 that is running, and
> not sshd. But the binaries ARE there for sshd. Except the
> hostkey doesn't seem to be there. Could fixing this be as simple
> as creating a hostkey for sshd as well, and running it on a
> different port than sshd2 is running on?
> Thank you!
> david bryce
> davidbryce at fastmail.fm
Add sshd_enable="YES" to /etc/rc.conf and for the time being if you
don't want to reboot, run "/etc/rc.d/sshd start". Make sure to turn
off and disable sshd2 though (there might be a reference to it in
rc.conf as well) by running /usr/local/etc/rc.d/sshd2 stop (or
something like that). If you're logged in remotely and don't have
physical access to the machine, just run
/usr/local/etc/rc.d/sshd2 stop & /etc/rc.d/sshd start. Note the
single ampersand--very important.
That should stop the first sshd daemon and start the one you want.
More information about the freebsd-questions