LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-04-2011, 05:11 AM   #31
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193

Quote:
Originally Posted by tariq View Post
As far as I know I can connect using password.
Either you can or you cant.... Which is it?

Unless you have configured a host in ~/.ssh/config, you are not trying to connect with keys.

On the server, run:
Code:
tcpdump -i eth0 src x.x.x.x and tcp port 22 -nn
(replace eth0 with the relevant interface, and x.x.x.x with your clients IP)
And try to connect to it with ssh on the client..

This will show if the ssh connection packets are even getting to the server..

Last edited by fukawi1; 11-04-2011 at 05:14 AM.
 
Old 11-04-2011, 09:01 AM   #32
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
You need to ignore rsh, ssh keys, authorized keys, etc. until you're first able to log into the machine with a password. Ignore all of the keygen stuff until you have it working. If you can't even log in with a password, you're just going to complicate things trying to add passwordless/passphraseless login via rsh keys and authorizedkeys.

Remove your authorizedkeys file, remove your rsh id, etc., and go back to the basics until you have things working.

In your screenshot you're trying to connect to blr-ws-151, not the IP. Is this hostname in your /etc/hosts file? What do you see in the server log files when you try to connect? Can you ssh the other direction (server to client)?
 
  


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 can not connect remote host crazy6 Linux - Newbie 2 03-04-2011 07:28 PM
telnet: Unable to connect to remote host: No route to host grob115 Linux - Networking 3 07-30-2010 10:18 AM
Fedora 10/unable to ssh out from box to remote host (SSH within LAN ok) huskeypm Linux - Networking 3 04-14-2009 07:37 PM
telnet: Unable to connect to remote host: Connection refused stuckz Fedora 6 06-21-2007 02:36 AM
how 2 connect 2 remote host using SSH fhameed Linux - Networking 2 09-08-2004 08:42 PM

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

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

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