ssh fails to connect- fedora 19
I just updated from fedora 17 to fedora 19 using fedup in both my laptop and desktop. Somehow ssh is not working in both my laptop and desktop.
In both systems I ensured the following:
- Ports defined in
/etc/ssh/sshd.config
- SELINUX set to
permissive
- Enabled and started ssh by
/sbin/services sshd start
- Checked ssh status with
systemctl status sshd.service
and it says thatServer listening on :: port 9022
- Also added port in semanage
It still doesn' t work (No route to host
)
Laptop is on wifi and the cables and connections are fine since I can connect to the internet.
LAPTOP
IP: 192.168.21.57
Routing table:
Destination Gateway Genmask Flags MSS Window irtt Iface
default 192.168.20.1 0.0.0.0 UG 0 0 0 wlp3s0
192.168.20.0 * 255.255.254.0 U 0 0 0 wlp3s0
pinging the desktop 192.168.14.110 gives no problems:
21 packets transmitted, 21 received, 0% packet loss, time 20027ms
rtt min/avg/max/mdev = 2.118/21.040/128.028/38.759 ms
Desktop to laptop ping also works.
Desktop routing table:
Destination Gateway Genmask Flags MSS Window irtt Iface
default 192.168.14.1 0.0.0.0 UG 0 0 0 em1
192.168.14.0 * 255.255.255.0 U 0 0 0 em1
I couldn't open firewall settings though (both in laptop and desktop): If try I open it from the menu or from commandline (system-config-firewall
) it says: ERROR: FirewallD is active, please use firewall-config
I don't have much idea about how to configure firewall from commandline.
What could be wrong ?
EDIT 2
ssh -v host -p 9022
returns this:
OpenSSH_6.2p2, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 50: Applying options for *
debug1: Connecting to 192.168.14.110 [192.168.14.110] port 9022.
debug1: connect to address 192.168.14.110 port 9022: No route to host
ssh: connect to host 192.168.14.110 port 9022: No route to host
What does ssh -v host -p 9022 say?
well.. fine i solved it.. it was a problem with the firewall.. i deleted and redefined the port :P