LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-13-2011, 02:37 AM   #1
alismayilov
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Rep: Reputation: Disabled
ssh problem-big problem


Hello,

We have one user interface, there is some problem ssh to this server. Inside country (Azerbaijan) everybody can ssh to this machine. Outside of country, some people can ssh, some people not. Why?

[user@user-hp ~]$ ping ui.example.org
PING ui.example.org (ip) 56(84) bytes of data.
64 bytes from ui.example.org (ip): icmp_seq=1 ttl=128 time=114 ms
64 bytes from ui.example.org (ip): icmp_seq=2 ttl=128 time=114 ms
^C

--- ui.example.org ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1553ms
rtt min/avg/max/mdev = 114.307/114.332/114.358/0.339 ms
[user@user-hp ~]$ ssh user@ui.example.org
ssh: Could not resolve hostname ui.example.org: Name or service not known
[user@user-hp ~]$

What is the problem? Any idea?
 
Old 08-13-2011, 02:53 AM   #2
norbert74
Member
 
Registered: Apr 2006
Posts: 63

Rep: Reputation: 23
Quote:
ssh: Could not resolve hostname ui.example.org
Can you log in with IP address ?
Code:
ssh user@[ip address]
 
0 members found this post helpful.
Old 08-14-2011, 01:22 AM   #3
alismayilov
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
No, I also could not connect with IP address.
 
Old 08-14-2011, 04:00 AM   #4
siranjeevi
Member
 
Registered: May 2010
Location: India
Posts: 79

Rep: Reputation: 7
Hi,

Can you check if your local machine is opened with ssh port number .?.. Seems like your local machine is blocked with that outgoing port number.

Last edited by siranjeevi; 08-14-2011 at 04:07 AM. Reason: For clear understanding
 
Old 08-14-2011, 05:22 AM   #5
alismayilov
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
ssh port is open. I also check online http://ping.eu/port-chk/ and it shows that: 22 port is open
 
Old 08-14-2011, 05:41 AM   #6
snowweb
Member
 
Registered: May 2008
Distribution: Ubuntu12, CentOS6
Posts: 61

Rep: Reputation: 0
If we had a domain name or IP address, perhaps we could run traces?

Pete
 
Old 08-14-2011, 06:15 AM   #7
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
You can use telnet as a debugging tool. When you use telnet, you should get an output of:
Code:
$ telnet foobar.example.com 22
Trying 123.123.123.123...
Connected to foobar.example.com.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.1
You can’t log in this way, but it checks whether you can access the port at all. If this is working, you can run ssh in verbose mode to check where it stops:
Code:
$ ssh -vvv foobar.example.com
Maybe it spots something.
 
Old 08-17-2011, 01:54 AM   #8
alismayilov
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
Code:
[user@user-hp ~]$ telnet ui.example.org 22
Trying [ip]...
Connected to ui.example.org.
Escape character is '^]'.
^]

telnet> Connection closed.
[user@user-hp ~]$ ssh -vvv ui.example.org
OpenSSH_5.2p1, OpenSSL 0.9.8k-fips 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to ui.azgrid.org [ip] port 22.
debug1: Connection established.
debug1: identity file /home/user/.ssh/identity type -1
debug1: identity file /home/user/.ssh/id_rsa type -1
debug1: identity file /home/user/.ssh/id_dsa type -1
So, after this nothing happen. So, what is the problem?

Last edited by alismayilov; 08-17-2011 at 01:56 AM.
 
Old 08-17-2011, 04:47 AM   #9
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Compared to the machines I have access to the lines:
Code:
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1
debug1: match: OpenSSH_5.1 pat OpenSSH*
are missing and an equivalent output with the telnet access is missing too. So I would check what is listening on port 22 - seems not to be an sshd but something else.
 
Old 11-21-2011, 06:56 PM   #10
SKelem
Member
 
Registered: Jun 2005
Location: Silicon Valley, California
Distribution: Fedora 13
Posts: 36

Rep: Reputation: 15
No route to host

I'm having trouble connecting to another computer on a local network.
I set up ssh on the server to use port 8383.
I can ping the server, but I can't telnet or ssh.

Any idea what's wrong?

Code:
% ping 192.168.111.175
PING 192.168.111.175 (192.168.111.175) 56(84) bytes of data.
64 bytes from 192.168.111.175: icmp_req=1 ttl=64 time=0.227 ms
64 bytes from 192.168.111.175: icmp_req=2 ttl=64 time=0.247 ms
^C
% telnet 192.168.111.175 8383
Trying 192.168.111.175...
telnet: connect to address 192.168.111.175: No route to host
% ssh -vvv 192.168.111.175:8383
OpenSSH_5.6p1, OpenSSL 1.0.0e-fips 6 Sep 2011
debug1: Reading configuration data /local/home/user/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
ssh: Could not resolve hostname 192.168.111.175:8383: Name or service not known
 
Old 11-21-2011, 10:45 PM   #11
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by SKelem View Post
I'm having trouble connecting to another computer on a local network.
I set up ssh on the server to use port 8383.
I can ping the server, but I can't telnet or ssh.

Any idea what's wrong?

Code:
% ping 192.168.111.175
PING 192.168.111.175 (192.168.111.175) 56(84) bytes of data.
64 bytes from 192.168.111.175: icmp_req=1 ttl=64 time=0.227 ms
64 bytes from 192.168.111.175: icmp_req=2 ttl=64 time=0.247 ms
^C
% telnet 192.168.111.175 8383
Trying 192.168.111.175...
telnet: connect to address 192.168.111.175: No route to host
% ssh -vvv 192.168.111.175:8383
OpenSSH_5.6p1, OpenSSL 1.0.0e-fips 6 Sep 2011
debug1: Reading configuration data /local/home/user/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
ssh: Could not resolve hostname 192.168.111.175:8383: Name or service not known
post the output of following commands

Code:
#netstat -ntlp | grep 8383

#cat /etc/hosts

#cat /etc/resolv.conf
 
  


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
[acer Extensa 5620Z] I got a big big problem, please help ^^ VodkaRocks Linux - Wireless Networking 11 06-26-2009 07:08 AM
Big Problem. Please Help. - SSH - Linux kevinwhite Linux - Server 5 01-31-2009 02:56 PM
BIG BIG PROBLEM with nvidia driver for linux x86 basshead62887 Linux - Hardware 5 09-12-2007 12:33 AM
BIG problem with SSH!! masterross Slackware 14 04-15-2006 02:46 AM
Installing RH 9 with RAID 5 --Big, big Problem!!! rhonneil Linux - Software 2 09-25-2003 08:13 PM

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

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