Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
I have two hosts connected to the same hub. I am trying to connect one host to another with ssh but the server does not respond to my connection requests.
I listen the interface of the server connected to the HUB and see that it receives the connection requests from the client.
Both hosts allow all the packets from INPUT and OUTPUT chains. The iptables configuration is as follows
Code:
iptables -F
iptables -A INPUT -j ACCEPT
iptables -A OUTPUT -j ACCEPT
I can ping from one host to other from both two machines. I can connect the host machine by using a ssh client on the server. But from client to server I cannot connect!
run tcpdump on the server and see if it recives the connections. i'd be guessing that either sshd isn't running in the first place or you have used the wrong ip address.
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262
Rep:
My guess is that the ssh daemon is not started on the machine you call "server". Try something like "/etc/init.d/sshd start".
If this is not the problem, a complete error message would help. Running ssh client in command line with the "-v" option might give you some valuable info as well.
hmm, ok. well other than suggesting turning passwordauthentication on and maybe explicitly forcing protocol 2 (although i assume default is 2 then 1 anyway), if you really think that it's not responding, paste the serverside tcpdump info from "tcpdump port 22 -nv" during a login attempt on the client.
ok.... can you ssh to it from the server itself? using the 192.168.5.1 address? certainly doesn't show sshd responding to anything at all. do you have any other services on the box? maybe you could quickly install proftp or something, just to show the box as a whole accepts connections and it's definitly sshd's fault. i assume that nmap doesn't show the port as open.
In one way I was able to solve the problem! I have been working on it since morning and tried lots of things! Now it is working, it is better not to touch the system
I have a new problem now...But anyway, i will have a break for networking now, have to focus on something else...
In one way I was able to solve the problem! I have been working on it since morning and tried lots of things! Now it is working, it is better not to touch the system
I have a new problem now...But anyway, i will have a break for networking now, have to focus on something else...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.