Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ~]$
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:
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.