LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-11-2015, 05:30 AM   #1
sandykrishn1988
LQ Newbie
 
Registered: Jun 2015
Posts: 12

Rep: Reputation: Disabled
Problem with ssh


Hi Everyone,

I have a problem with ssh. When I try to login my server remotely with ssh. It will take some hold time after that time it will give me an error, connection timed out. I have checked twice with my credentials, those are correct & I try to ping to my server, I can ping it and all services are running fine in that server. But I am unable to connect.

I waiting for you valuable response

Thanks & Regards
Sandeep.R
 
Old 08-11-2015, 05:40 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,678

Rep: Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712
Well, a few early questions

1. do you have sshd running on the server? (ps)
2. What port is it set to service, is it listening on that port? (netstat)
3. Are you running a firewall, and is it allowing that port inbound?
4. Are there any security devices between the two machine that might block? (or NAT)

Any one of these MAY lead to the cause of the problem, but in any case must be eliminated as a factor early.
 
Old 08-12-2015, 12:36 AM   #3
sandykrishn1988
LQ Newbie
 
Registered: Jun 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
Hi,

I have checked with all details and the results are follows below

In my server sshd is running, with port number 22.

In my server Iptables has been stopped & Selinux in Permissive mode.

I can able to connect to the remote server. But From remote server to my machine connectivity is not happening.

Please respond me to this ASAP

Thanks & Regards
Sandeep.R
 
Old 08-12-2015, 12:51 AM   #4
sandykrishn1988
LQ Newbie
 
Registered: Jun 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
When I run ssh -v user@remote-address, lastly I getting this error

debug1: Unspecified GSS failure. Minor code may provide more information
Cannot determine realm for numeric host address
 
Old 08-12-2015, 04:30 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
probably this helps, or at least will give you some tips: http://objectmix.com/apache/685041-c...t-address.html
 
Old 08-13-2015, 05:35 AM   #6
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,678

Rep: Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712
checks.

OK you checked that the server had sshd running, but the connection failing is the one FROM the server back to your workstation. Check that sshd is running on your workstation, and that any firewall you have running allow that incoming connection.
 
Old 08-13-2015, 07:41 AM   #7
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
One thing to look a is your router(s) and make sure that port 22 is enabled; for example, Linksys routers must be configured for SSHD, port 22, "both" (protocol), and checked "enabled." That stuff is in Applications and Gaming in the router.

Another is the existence of the ./.ssh directory on both ends (if you're logging in). That directory should have authorized_keys, id_rsa, id_rsa.pub and known_hosts files that were generated by ssh-keygen.

You should be able to ssh to "yourself;" log in, and enter ssh manchine_name (which should be in your ./ssh/known_hosts file).

The above sort of assumes your servers are fixed-IP and that their names, aliases and addresses are in /etc/hosts. If you're using DHCP, be sure that they're configured with IP addresses (which, basically, is fixed-IP, eh?).

Make sure you've got ./.ssh content on both ends.

Hope this helps some.

Last edited by tronayne; 08-13-2015 at 07:42 AM.
 
Old 08-13-2015, 11:43 AM   #8
auge
Member
 
Registered: May 2002
Location: Germany
Distribution: CentOS, Debian, LFS
Posts: 100
Blog Entries: 1

Rep: Reputation: Disabled
show us an "netstat -an |grep LISTE" and paste us your ssh config without comments perhaps it is "cat /etc/ssh/ssh_config |grep -v "#""
Do you have SELINUX on? iptables?
 
  


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
ssh trying to configure sshd_config problem with ListenAddress and ssh restart pulper Linux - Networking 1 10-13-2014 08:20 AM
Chroot SSH problem: ssh working, not SFTP & SCP. NaCo Linux - Security 3 02-01-2009 02:23 AM
SSH problem - ssh-add not respond FerkoPica Linux - Security 6 05-07-2006 03:47 PM
ssh problem after creating an ssh alias. porotothorpe Linux - General 2 01-25-2006 07:56 PM

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

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