LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-02-2013, 06:26 AM   #1
sunilpopaliya
Member
 
Registered: Apr 2012
Posts: 47

Rep: Reputation: 4
ssh login poblem


Hello,

When i am trying to log in to red hat linux server,it will ask password and but after entering password, i am not able to log in.Below i mentioned output of ssh -v command.
[root@exegenix ~]# ssh -v 172.20.20.65
OpenSSH_4.7p1, OpenSSL 0.9.8b 04 May 2006
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 172.20.20.65 [172.20.20.65] 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_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.7
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-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
debug1: Host '172.20.20.65' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:17
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,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more information


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: password
root@172.20.20.65's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: channel 0: free: client-session, nchannels 1
Read from remote host 172.20.20.65: Connection reset by peer
Connection to 172.20.20.65 closed.
debug1: Transferred: stdin 0, stdout 0, stderr 98 bytes in 114.3 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.9
debug1: Exit status -1
[root@exegenix ~]#

Thanks in advance for your help.....
 
Old 04-02-2013, 06:30 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
For this kind of thing it helps to look at the server-side logs.

Since you are attempting root maybe you have PermitRootLogin as "no" in sshd_config on the server.
 
Old 04-02-2013, 06:33 AM   #3
sunilpopaliya
Member
 
Registered: Apr 2012
Posts: 47

Original Poster
Rep: Reputation: 4
Hello,

Thanks for your quick reply, but i am facing these problem from yesterday.Before it was working fine and i rebooted server before sometime and try to log in that time i was able to log in. But after sometime once again i try to log in i got this error.
 
Old 04-02-2013, 09:49 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sunilpopaliya View Post
Hello,

Thanks for your quick reply, but i am facing these problem from yesterday.Before it was working fine and i rebooted server before sometime and try to log in that time i was able to log in. But after sometime once again i try to log in i got this error.
...and you still haven't checked the logs, as was suggested. The server-side logs need to be examined for information, and again, have you checked to see if the permitrootlogin is set to "no"? If the change was made and the server rebooted, that would make that change take effect.

Are you able to log in as a 'regular' user? Is ANYONE able to log in via SSH? Is SSH even running?
 
Old 04-09-2013, 07:59 AM   #5
shankerlee
LQ Newbie
 
Registered: Jan 2012
Posts: 4

Rep: Reputation: Disabled
could you use non root user to have a try and show the detail
 
Old 04-09-2013, 09:46 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by shankerlee View Post
could you use non root user to have a try and show the detail
A non-root user doesn't have permissions to look at those log files, and we've already asked for details, thanks.
 
Old 04-10-2013, 06:28 AM   #7
shankerlee
LQ Newbie
 
Registered: Jan 2012
Posts: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
A non-root user doesn't have permissions to look at those log files, and we've already asked for details, thanks.
sorry , didn't see what you write.

Last edited by shankerlee; 04-10-2013 at 06:31 AM.
 
  


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
Remote ssh login (passwords useless), and local login (using password) linuxStudent11 Linux - Security 1 01-09-2013 01:30 PM
Passwordless ssh works. Normal login/ssh Fails. gurunarayanan Linux - Newbie 9 11-08-2012 04:42 AM
[SOLVED] ssh-keygen for auto ssh login not working R00ts Linux - Software 26 09-23-2012 01:40 PM
[SOLVED] SSH login problem for additional users after password-less login setup uncle-c Linux - Newbie 3 02-10-2010 12:51 PM
login poblem afathy Linux - General 3 03-13-2004 12:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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