1752797 Members
6117 Online
108789 Solutions
New Discussion юеВ

ssh problem

 
madhudeepan
Frequent Advisor

ssh problem

i am getting this error when i try to do ssh from inccisss0001 to inchfbag.

root@inccisss0001 # ssh inchfbag -v
SSH Version SSH_1.0.1, protocol versions 1.5/2.0.
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: ssh_connect: getuid 0 geteuid 0 anon 0
debug1: Connecting to inchfbag [172.24.131.2] port 22.
debug1: Allocated local port 1023.
debug1: Connection established.
debug1: identity file //.ssh/identity type 3
debug1: identity file //.ssh/id_rsa type 3
debug1: identity file //.ssh/id_dsa type 3
ssh_exchange_identification: Connection closed by remote host
debug1: Calling cleanup 0x3ee0c(0x0)
root@inccisss0001 #


but i am able to ssh from inchfbag


this is the error i am getting when i try to ssh from server-a to server-b.

ssh_exchange_identification:closed by remote host

but i am able to ssh from server-b to all servers
5 REPLIES 5
R.K. #
Honored Contributor

Re: ssh problem

Hi Madhudeepan.

Please check syslog.log for messages like:

sshd[23456]: refused connect from

Check in the /etc/hosts.allow and /etc/hosts.deny files for any special permissions that may be limiting your access to sshd on the server.

Regds,
R.K.
Don't fix what ain't broke
R.K. #
Honored Contributor

Re: ssh problem

Also....are you able to make any ssh connections or is it like only few connections can be made and after that you are getting these errors.

Thanks..
Don't fix what ain't broke
madhudeepan
Frequent Advisor

Re: ssh problem

sever a to server b ssh connection not possiable

server b to all server ssh connection possiable
Mel Burslan
Honored Contributor

Re: ssh problem

>sever a to server b ssh connection not possiable

>server b to all server ssh connection possiable

This statement is irrelevant to your problem. You may very well be able to ssh out but incoming ssh connections may not be accepted due to many reasons.

1) are you sure sshd is listening on port 22 on inchfbag ?

ps -ef | grep sshd
netstat -an | grep LISTEN | grep 22


2) are you sure your corporate firewall is allowing incoming ssh connections to this server ?

ask your firewall admins about this

3) for further debugging, are you able to ssh into inchfbag from any other server ?

________________________________
UNIX because I majored in cryptology...
Tingli
Esteemed Contributor

Re: ssh problem

Is there a file /etc/hosts.deny in server-b which won't let server-a in?