Click to See Complete Forum and Search --> : Using openSSH sshd2 real newbie


Danster
01-28-2001, 01:39 PM
I want to use the sshd2 deamon. Anybody know of a newbie guide? The man page wasn't newbie friendly. I need to know a simple way to set it up to start automatically and turn off clear text telnet.

ph34r
01-28-2001, 02:11 PM
Get the openssh and openssl packages for your distro (apt-get or www.linuxmafia.org (http://www.linuxmafia.org) or www.rpmfind.net) (http://www.rpmfind.net)) and install them. You may be prompted to generate host keys. If so, you should be able to run sshd and accept connections. If you are not prompted to do hostkey generation, you will need to do the following:

root@yourhost # ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N ""

root@yourhost # ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N ""


Now you should be able to run sshd and accept connections (ssh user@hostname to connect).

To disable regular telnet, edit /etc/inetd.conf and put a comment ( # symbol) in front of the line that calls telnetd. While you are in there, disable everything else unless you need it (auth for identd for IRC servers, etc.)

Danster
01-28-2001, 02:56 PM
Thanks. Downloading the RPM was unneccesary 'cause it was already on the machine: good thing too 'cause the latest RPM's wouldn't work for RH 6.x I found a guide at: http://www.freeos.com/articles/2745/2/13/ but the prob. was I couldn't find the file ssh.pam.generic on my machine

I wonder if there is a better guide and/or anyone knows of the latest RPM that will work w/ glibc2.1