Linux - NewbieThis 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
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.
Hi all,
I'm not exactly a newbie to linux, but I'm no expert either. I've got user level experience on debian based distros but no more.
My problem is that I'm not able to ssh within my lan on fedora. I have two desktops and a laptop (all running mint debian till yesterday when I switched one desktop and the laptop to fedora) connected to a router (belkin router in which I've made no changes since previously). Desktop A runs fedora, while desktop B runs Mint xfce. I am able to ssh from desktop A to B without any trouble but when I try to connect to my laptop (running fedora and connects via wireless) I get the "no route to host" error. I have tried slotting in the ethernet cable and trying, but get the same error.
I've enabled the ssh checkbox on the firewall and started up openssh-server on both systems. I am able to ping from desktop A to the laptop and the other way round without any problems. I've tried hunting around on google, but all the explanations are a little above my head.
I would be very grateful for any help in getting this problem resolved.
If you can ping from A to laptop but not B to laptop then "netstat -nrv" probably differs between A and B.
Is DCHP being used or are they static IPs? Has the laptop been rebooted after being plugged in to the ethernet?
I ran the netstat -nrv command on both the laptop as well as the desktop and they both return the same results as below.
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 p33p1
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 p33p1
The only difference is that for the laptop the Iface says wlan0.
I have enabled DHCP on the router and am able to connect to the internet on both systems.
No I did not reboot the laptop after plugging in the ethernet cable, but it connected, an ip address was assigned and I was able to browse the net.
Edit - I know it's probably something very small because I'm able to ssh from my fedora desktop to the mint desktop. It's probably some setting on fedora that I've not done on the laptop. Don't know what.
I think it's the problem with DNS. Try to connect SSH using your ip address. If the problem still persist make sure that the port 22 is opened for ssh. Use
iptables -L
to list the firewall rules. You can enable port 22 by using the command
I'm sorry about the delayed response, but it's the time difference and I was in bed.
linosaurusroot
Yes, it is as you say.
nijinashok00
I tried connecting to myself and did not have any problem. I could connect easily. I have opened port 22 in the firewall although I used the gui rather than change rules in iptables.
I've fixed it now. I disabled the firewall in the laptop and connected via ssh. Once I had obtained the key I then enabled the firewall in the laptop and could connect easily after that. Don't know why I couldn't connect even with port 22 open in the firewall, but I'm ok with this feature (if it is indeed a feature) in fedora that requires that I manually disable the firewall before another system can get the ssh key.
I appreciate the help guys. Thanks
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.