LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
problem setting up ssh connection


hi,
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.
Thanx
 
Old 01-30-2004, 04:01 PM   #2
zaphod_es
Member
 
Registered: Jun 2003
Location: Brazil
Distribution: Ubuntu
Posts: 137

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 http://www.steidler.net/uptime/archives/000391.html

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.

ZB

# 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
 
  


Reply


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 04:01 AM
ssh port 22 connection problem gr3ygh0s1 Linux - Security 1 05-24-2005 02:48 PM
ssh connection; exit problem b0uncer Linux - Networking 0 05-22-2004 11:02 AM
SSH - X server connection problem satimis Linux - Networking 5 04-29-2004 02:29 AM
problem setting up ssh rsheridan6 Linux - Networking 2 04-21-2003 10:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:33 PM.

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