1845010 Members
1878 Online
110233 Solutions
New Discussion

ssh error

 
Sreer
Valued Contributor

ssh error

Hi gurus,

I need to repair ssh function in my server box.

while doing ssh to my server iqm getting error:

ssh_exchange_identification connection closed by remote host

Could you pls help me on this?
unix version is 11.23

many thanks

rgds Sree
10 REPLIES 10
James R. Ferguson
Acclaimed Contributor

Re: ssh error

Hi:

"Repair" suggests that something was once working. What happened to cause things to stop working?

Regards!

...JRF...
Steven Schweda
Honored Contributor

Re: ssh error

> [...] ssh to my server [...]

> unix version is 11.23

And "my server" is this "unix" system?
What's the other end? (Actual output from
"uname -a" would tell us more.)

Anything in the system log file?

Can you connect by SSH from "my server" to
itself?

Actual "ssh -v [...]" output?
johnsonpk
Honored Contributor

Re: ssh error

Hi Sree,

to trouble shoot the issue , run ssh in verbose mode


#ssh -vvv -l


alternatively you may rename known_hosts file under .ssh directory in your local machines's home.

rgds!
Johnson
Jupinder Bedi
Respected Contributor

Re: ssh error

i think your ssh proceess id died . try to login in to the server using telnet or from the console and restart your ssh services.

cd /sbin/init.d
./secsh start


Good luck
All things excellent are as difficult as they are rare
Horia Chirculescu
Honored Contributor

Re: ssh error

Hello,
This could also appear when somoeone played arround with TCP settings. Did you recently modified something on your server/client? Also, check your firewall. Of course, as sugested below, increasing the log verbosity usually helps understanding better what it is really going on. (On the client you must use -vvv as instructed, on the server side you can use LogLevel in the daemon config file -see man page)

Best regards,
Horia.
Best regards from Romania,
Horia.
AVV
Super Advisor

Re: ssh error

Hi Sree,

Check for the process and restart it if its not there already.
singh sanjeev
Trusted Contributor

Re: ssh error

there may be chance of high resuoce utilization on the server ;try to find out via console. like swap,nproc etc...
Sanjeev Singh
Sreer
Valued Contributor

Re: ssh error

Hi,

I have restarted ssh.

/sbin/init.d/secsh stop then started

How can I confirm the ssh is already installed well?


/opt/ssh/etc]#swlist -l product | grep -i ssh
[root@server:/opt/ssh/etc]#

its not giving any info about the installed ssh.
I checked in a working server there also same out pu is getting ie, not giving any result from swlist command


Can u pls guide me on it?

thanks rgds Sree
OldSchool
Honored Contributor

Re: ssh error

Mnay unaswered question so far, as in:

a) "Repair" suggests that something was once working. As James notes, the implication is that this worked at one time. Did it?
b) What are you trying to ssh to? From?

Have you tried running "ssh -vvv" as noted and capture the log output?

Have you tried running a debugging instance of the sshd (possibly on a different port) to capture its log output?

Actual command issued?

As to swlist, if ssh wasn't installed via depot (ie built from source) then it won't show in the swlist.

How are you trying to autheticate? Passwordless (w/ keys)?
Horia Chirculescu
Honored Contributor

Re: ssh error

Hello,

>How can I confirm the ssh is already installed well?

You can try it by using "ssh -V" and in order to find out the location of the installed sshd, use which sshd and ll

Below a sample:

# which sshd
/usr/sbin/sshd
# ll /opt/ssh/sbin/
total 0
lrwxr-xr-x 1 root sys 29 Oct 7 2006 sshd -> /opt/ssh/PA-RISC2.0/sbin/sshd
# ll /usr/sbin/sshd
lrwxr-xr-x 1 root sys 18 Oct 7 2006 /usr/sbin/sshd -> /opt/ssh/sbin/sshd


Best regards,
Horia.
Best regards from Romania,
Horia.