LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-31-2013, 04:51 AM   #1
suresh.k
Member
 
Registered: Aug 2011
Location: Hyderabad, AP, India
Distribution: centos, Ubuntu
Posts: 163
Blog Entries: 1

Rep: Reputation: Disabled
unable to ssh to remote host with normal user, but


Hi,

Iam unable to ssh to remote host with normal user, but wher i can ssh to remote host with root user. Below is the error iam getting while trying to ssh with normal user.

log@localhost:~> ssh cst@remotehost
cst@remotehost's password:
Segmentation fault
log@localhost:~>


/var/log/messages log
kernel: ssh[3401]: segfault at 00000000000000c0 rip 00002ac746c37d39 rsp 00007fff6431d5a0 error 4

using root i can ssh to remote host

root@localhost:~ # ssh remotehost -lcst
cst@remotehost's password:
Last login: Wed Jul 31 14:57:35 2013 from 192.168.60.86
cst@remotehost:~>


Please help to resolve the issue,

Regards
SUresh

Last edited by suresh.k; 07-31-2013 at 04:55 AM.
 
Old 07-31-2013, 04:56 AM   #2
sunilpopaliya
Member
 
Registered: Apr 2012
Posts: 47

Rep: Reputation: 4
HI suresh

can you post output of below command?

ssh -v cst@remotehost

======
sunil
 
Old 07-31-2013, 05:26 AM   #3
suresh.k
Member
 
Registered: Aug 2011
Location: Hyderabad, AP, India
Distribution: centos, Ubuntu
Posts: 163

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by sunilpopaliya View Post
HI suresh

can you post output of below command?

ssh -v cst@remotehost

======
sunil
HI SUNIL,
Here is the OutPut

log@localhost:~/.ssh> ssh -v cst@remotehost
OpenSSH_4.2p1, SSH protocols 1.5/2.0, OpenSSL 0x0090709f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: Connecting to remoteip [remoteip] port 22.
debug1: Connection established.
debug1: identity file /home/log/.ssh/identity type -1
debug1: identity file /home/log/.ssh/id_rsa type 1
debug1: identity file /home/log/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_4.2p1
debug1: match: OpenSSH_4.2p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.2p1
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 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 'remoteip' is known and matches the RSA host key.
debug1: Found key in /home/log/.ssh/known_hosts:15
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: /home/log/.ssh/identity
debug1: Offering public key: /home/log/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /home/log/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
cst@remotehost's password:
Segmentation fault


Thanks
Suresh
 
Old 07-31-2013, 05:39 AM   #4
sunilpopaliya
Member
 
Registered: Apr 2012
Posts: 47

Rep: Reputation: 4
Hi suresh,

Did you try to login it by putty directly instead of trying to ssh from other server???

And also login as root user and then use

su - normal_user_name. Check it is working or not??

Thanks
======
sunil
 
Old 07-31-2013, 05:50 AM   #5
suresh.k
Member
 
Registered: Aug 2011
Location: Hyderabad, AP, India
Distribution: centos, Ubuntu
Posts: 163

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by sunilpopaliya View Post
Hi suresh,

Did you try to login it by putty directly instead of trying to ssh from other server???
from my machine i can ssh to remote host with normal user, but i can't ssh from another machine where i want to push ssh key's to remote host.

Quote:
And also login as root user and then use

su - normal_user_name. Check it is working or not??
Same thing that iam doing sunil,
I am trying to ssh from su - normal user itself.
 
Old 07-31-2013, 06:50 AM   #6
sunilpopaliya
Member
 
Registered: Apr 2012
Posts: 47

Rep: Reputation: 4
Hi suresh

Check $HOME/.ssh/known_hosts file on remote machine, you should have key for server from which you are trying to ssh remote server.


Thanks
======
sunil
 
Old 08-01-2013, 07:19 AM   #7
suresh.k
Member
 
Registered: Aug 2011
Location: Hyderabad, AP, India
Distribution: centos, Ubuntu
Posts: 163

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by sunilpopaliya View Post
Hi suresh

Check $HOME/.ssh/known_hosts file on remote machine, you should have key for server from which you are trying to ssh remote server.


Thanks
======
sunil
Hi Sunil,

I think no need of key on remote host, after ssh only that key will generate on remote host automatically.

Regards
Suresh
 
Old 08-02-2013, 03:29 AM   #8
sunilpopaliya
Member
 
Registered: Apr 2012
Posts: 47

Rep: Reputation: 4
Hi suresh,

Yes, you are right that it will generate key automatically but i was asking that is it present or not?
If there is problem with that key then I think you can generate new ssh key for that user and try to ssh.
 
Old 08-02-2013, 04:22 AM   #9
suresh.k
Member
 
Registered: Aug 2011
Location: Hyderabad, AP, India
Distribution: centos, Ubuntu
Posts: 163

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by sunilpopaliya View Post
Hi suresh,

Yes, you are right that it will generate key automatically but i was asking that is it present or not?
If there is problem with that key then I think you can generate new ssh key for that user and try to ssh.
OK
Yes there is a key on remote host of which i am connecting from.
And i removed it and connected again, and again key has generated on remote machine.
Still same problem.


Regards
Suresh
 
Old 08-02-2013, 06:31 AM   #10
sunilpopaliya
Member
 
Registered: Apr 2012
Posts: 47

Rep: Reputation: 4
Hi suresh,

Can you generate new key for your machine by ssh-keygen command and then try it again?

Thanks
======
sunil
 
Old 08-02-2013, 06:42 AM   #11
suresh.k
Member
 
Registered: Aug 2011
Location: Hyderabad, AP, India
Distribution: centos, Ubuntu
Posts: 163

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by sunilpopaliya View Post
Hi suresh,

Can you generate new key for your machine by ssh-keygen command and then try it again?

Thanks
======
sunil
Hi Sunil,

Generated new ssh-keygen and manually copied to remote host, Appended id_rsa.pub file on autorized_keys file, but still we are unable to ssh.


Thanks
Suresh
 
Old 08-02-2013, 06:55 AM   #12
sunilpopaliya
Member
 
Registered: Apr 2012
Posts: 47

Rep: Reputation: 4
Hi suresh,

It is not necessary to append key to authorized_key file because you are not making password less connection.You have to just generate new ssh key on machine from which you are trying to ssh remote machine.

Thanks
======
sunil
 
Old 08-05-2013, 02:03 AM   #13
suresh.k
Member
 
Registered: Aug 2011
Location: Hyderabad, AP, India
Distribution: centos, Ubuntu
Posts: 163

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by sunilpopaliya View Post
Hi suresh,

It is not necessary to append key to authorized_key file because you are not making password less connection.You have to just generate new ssh key on machine from which you are trying to ssh remote machine.

Thanks
======
sunil
OK
Done the same as u suggested, but still no luck.

Suresh
 
Old 08-06-2013, 09:41 AM   #14
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Reinstall the openssh.
 
  


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
unable to connect to remote host using ssh tariq Linux - Newbie 31 11-04-2011 09:01 AM
Remote host SSH response: Tcl_InitNotifier: unable to start notifier thread forward Linux - Networking 1 10-14-2010 04:18 AM
Fedora 10/unable to ssh out from box to remote host (SSH within LAN ok) huskeypm Linux - Networking 3 04-14-2009 07:37 PM
Pls help: unable to login as normal user through ssh Baps Linux - Server 23 03-16-2009 06:52 PM
nis user login failure from remote host (ssh,sshd) freeindy Linux - Networking 1 01-18-2008 06:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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