LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-09-2007, 09:50 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
SSH (secure shell) software hanged


Dear friends ,

I got a strange problem . Recently , I cannot connect to my Linux server from my windows using SSH (secure Shell ) Software suddenly . When i got connected then firstly it prompt for pasword and then I press my user also root user's password . But at that moment it hangs for a long time and cannot response anything . I dont understand the problem ..... Plz give me solution plz ...


Here i also mention that , there have no security changes in my server
 
Old 12-09-2007, 10:45 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Try running the ssh client in verbose mode to see how far through the login process you get.

I'm not sure about Windows ssh clients, but with the openssh client which runs on Linux you can add the -v option several times to display verbose information while the connection and login are working.
 
Old 12-09-2007, 11:24 AM   #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
Quote:
Originally Posted by shipon_97 View Post
I got a strange problem . Recently , I cannot connect to my Linux server from my windows using SSH (secure Shell ) Software suddenly . When i got connected then firstly it prompt for pasword and then I press my user also root user's password . But at that moment it hangs for a long time and cannot response anything . I dont understand the problem
We need more information. You can stop the SSH daemon on the Linux machine and run it in interactive mode from the command line with either "-d" or "-v" (check your man pages) to produce debugging output. That will show you what is happening on the server, which is usually the place where handshaking and authentication problems occur.
 
Old 12-11-2007, 07:58 AM   #4
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Original Poster
Rep: Reputation: 31
Thx matthewg42 ,

I m trying to do ssh in using 'v' option but still I cannot connect to that REMOTE SERVER .
Here the ssh command output :

[root@server ~]# ssh -v 69.88.10.114 -l rashedf
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 69.88.10.114 [69.88.10.114] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.6.1p2
debug1: match: OpenSSH_3.6.1p2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.9p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes108-cbc hmac-md5 none
debug1: kex: client->server aes108-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
The authenticity of host '69.88.10.114 (69.88.10.114)' can't be established.
RSA key fingerprint is e8:99:0c:b9:f7:39:8a:39:90:00:91:31:91:49:ae:c2.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '69.88.10.114' (RSA) to the list of known hosts.
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
rashedf@69.88.10.114's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.

Plz tell me some solutions plz ..
 
Old 12-11-2007, 08:33 AM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
From the output of ssh -v we can see that the authentication succeeded, so we can rule out some problem with that.

What happens next? Nothing at all? If so, it seems like the remote host is either having problems starting a shell, or perhaps there is something weird going on in the shell rc files. Did the .bashrc / .profile or similar file get edited at some point?

In any case, do you have physical access to the machine? If so, can you get a normal shell on it locally?

Try doing the log in, waiting a minute or so after it seems to be stuck, and then pressing control-C. If there is something in the .bashrc which is taking a long time to execute, pressing control-C might break out of that to a shell, and then you can edit the rc files and try to work out what is causing the lockup.
 
  


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
Server not hanged but unable to SSH omega7577 Linux - Newbie 3 09-14-2007 01:21 AM
SSH Secure Shell 3.2.9 bglover3 Linux - Enterprise 1 06-21-2007 03:30 PM
secure shell sunhui Linux - Software 3 08-17-2006 09:50 AM
LXer: University of Michigan Selects SSH Tectia for Secure System Administration and Secure File Transfers LXer Syndicated Linux News 0 04-25-2006 12:54 AM
remoste shell and secure shell suchi_s Programming 2 12-21-2004 06:31 AM

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

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