Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-29-2004, 07:55 AM   #1
LQ Newbie
Registered: Jan 2004
Posts: 6

Rep: Reputation: 0
problem setting up ssh connection

I have got two computers (server1, server2) running redhat linux 7.3, i wish to log into one of the computers from the other through ssh connection but when i hit ssh server2 from the server1 prompt as root it says "the authenticity of host cannot be established ...are u sure u want to continue y/n - if i give it a yes it still continues asking me y/n and after a few repetetions it says "host key verification failed", since i am a newbie i am not sure what this is due to.. i even tried doing ssh localhost and it behaves in the same manner giving the same error.I would like to turn ssh on and then check out the scp tool for remotely copying files.I would greatly appreciate your help.
Old 01-30-2004, 05:01 PM   #2
Registered: Jun 2003
Location: Brazil
Distribution: Ubuntu
Posts: 136

Rep: Reputation: 15
It looks as though you are not going to get a reply to this so I will try to help even if I am far from an expert.

My guess is that the server on the remote machine is set up to only accept a login with secure public/private key encryption. This is a very convenient, secure and easy way of using ssh. There is an excellent explanation at

If you do not want to use this method (and there is no need for encryption if it is just for two computers in the same location) you must reconfigure the sshd on the remote machine. Start by taking a look at /etc/ssh/sshd_config. Mine is listed below.


# Set this to 'yes' to enable PAM keyboard-interactive authentication
# Warning: enabling this may bypass the setting of 'PasswordAuthentication'
#PAMAuthenticationViaKbdInt no

X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#KeepAlive yes
#UseLogin no
UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression yes

#MaxStartups 10
# no default banner path
#Banner /some/path
#VerifyReverseMapping no

# override default of no subsystems
Subsystem sftp /usr/lib/ssh/sftp-server
PermitRootLogin yes


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh connection problem klemen Linux - Networking 2 06-19-2005 05:01 AM
ssh port 22 connection problem gr3ygh0s1 Linux - Security 1 05-24-2005 03:48 PM
ssh connection; exit problem b0uncer Linux - Networking 0 05-22-2004 12:02 PM
SSH - X server connection problem satimis Linux - Networking 5 04-29-2004 03:29 AM
problem setting up ssh rsheridan6 Linux - Networking 2 04-21-2003 11:12 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration