LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-05-2007, 12:47 PM   #1
guillermo
LQ Newbie
 
Registered: Aug 2007
Location: Argentina
Posts: 25

Rep: Reputation: 15
Exclamation SSH connection problem, Rejected


Hello, recently i've had troubles connecting via SSH to of my servers, the error output is very weird,

[root@server1 ~]# ssh server2.name.com
Rejected
Connection to server2.name.com closed.

I can connect server1 to others of my servers and can't to others ones and i receive the same error, there are not wrappers on them, the ping is great between them, and i cant do a scp o sftp neither,however i can successfully telnet the port 22 of the target host;

[root@server1 tmp]# telnet server2 22
Trying xx.xx.xx.xx....
Connected to stats.bippie.com (xx.xx.xx.xx).
Escape character is '^]'.
SSH-1.99-OpenSSH_3.6.1p2

The sshd_config is for default there are not configs on it.

Any clue will be very very helpfully , and sorry for the continous problems

Best Regards!

Last edited by guillermo; 11-05-2007 at 01:04 PM.
 
Old 11-05-2007, 01:14 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well stick some -v's in the ssh command for more information. i can connect to it just fine (kinda pointless hiding your ip if you leave the hostname... )
 
Old 11-05-2007, 02:41 PM   #3
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Re: SSH connection problem, Rejected

Looking at the output of dmesg on the server you are trying to connect to will help you find out what the problem is. sshd will log errors and other useful information and you can view the output using dmesg. I have used this method to debug many kinds of ssh problems in the past.

You can also run the sshd daemon from the command line with the "-d" option from the command line to get extra debug information in the system log. You can also use "-dd" and "-ddd" for even more information.

This, of course, assumes you have physical access to the server and can log in from the console.
 
  


Reply



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
DHCP connection rejected fabrice Linux - Networking 3 02-24-2014 05:11 AM
bluetooth connection rejected FerkoPica Linux - Hardware 1 10-29-2006 02:21 PM
ssh connection problem klemen Linux - Networking 2 06-19-2005 04:01 AM
Connection to external hostname from outside ok but rejected from inside network Dalvinio Linux - Networking 0 03-11-2005 06:51 PM
Rejected Connection vcheah Linux - Security 6 04-12-2002 01:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:50 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