LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   need help with ssh (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-with-ssh-63550/)

ksgill 06-03-2003 10:44 PM

need help with ssh
 
Could anyone direct me to a ssh HOWTO/Tutorial so that i can get it up and running. I use ftp to access my files remotely but i heard that ssh or telnet are better as I can do more with them.
thanks :Pengy:

ksgill 06-03-2003 11:49 PM

I get these error messages when i try to run my ssh server

Could not load host key: /etc/ssh/ssh_host_key
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.

moses 06-04-2003 12:06 AM

You seem to have a bit of a misunderstanding about the different protocols. FTP is a file transfer protocol, TELNET is an interactive communications protocol (and doesn't provide a mechanism for transfering files), SSH is a secure shell protocol used for secure authentication. SSH is the one you want to use as the others transfer everything in plain ascii text, including passwords. SSH uses secure encryption in all of its communications. You will need to use scp or sftp to actually transfer files, while ssh allows you to connect to other machines in a manner that, on the surface, is similar to telnet.

I'm not sure if MDK comes with documentation (online or otherwise), but openssh has the very basics in its source package in the INSTALL file.
Read the man pages on ssh, ssh-keygen, and sshd.
Typically, you want to set up your host keys with ssh-keygen just once, using syntax like:
Code:

/usr/bin/ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ''
/usr/bin/ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''
/usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''


ksgill 06-04-2003 12:14 AM

thanks, those key commands worked perfect. Now another question..I need to install sftp or keep running my existing ftp server in order to actually download files..right?


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