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.
Hello everybody
I tried use ssh but I cant.I have two linux machine.I written ssh -keygen -t dsa in consol and One file is made in /home/wampire/.ssh/id_dsa.pub .And I have to copy id_dsa.pub file another linux machine in /home/user/.ssh/ but I can't have .ssh directory in other linux machine.But sshd is already run on system.I need some help.Good day
I don't know how you can use SSH only between to systems with static IP but I suppose you can to configure it through iptables.
First of all sshd service must be running on both systems. You need also to check you ssh_config file in /etc/ssh folder. Be sure that you have this line disabled otherwise you'll not be able to connect to or from.
# PasswordAuthentication no
After you are sure ssh is running in order to connect you type in the console:
ssh username@ip
If you type just ssh ip then you will be connected as the user that you are logged in your system.
Yes I did this what you say.And ssh user@ip then consol says that "ssh: connect to host 10.x.x.x port 22: No route to host ".But Host is already run sshd...
Means that your system is on a different IP subnet than the one it is trying to connect to AND it has no route table entry for a router that knows how to get there.
Is this 10.xx.xx.xx host across The Internet from you? if so it is behind a NAT and you can't directly access it unless the administrator of that network opens a port forward to the system for you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.