Re: trying to move ssh to a different port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Don't edit iptables.. use firewall-cmd


----- Reply message -----
From: "Robert Moskowitz" <rgm@xxxxxxxxxxxxxxx>
To: <arm@xxxxxxxxxxxxxxxxxxxxxxx>
Subject: [fedora-arm] trying to move ssh to a different port
Date: Thu, Apr 18, 2013 8:45 pm


I always move sshd from port 22 to port nnn.  To do this I use semanage
(which I had to install):

semanage port -a -t ssh_port_t -p tcp nnn

then edit /etc/ssh/sshd_config to point to port nnn.

then I edit iptables (which is off on this install, interesting, though
selinux is not) to open up port nnn.


Finally I restart sshd.

Well, first off I am sshed into the box doing this on port 22. status of
sshd is it is listening on port nnn.  I tried opening another ssh
session (without stoping the one running right now), to port and get:


No route to host

To the old port 22 I get

Connection refused.

I do this all the time with Fedora and Centos.  What am I missing on
this system?

I put the port back to 22 until I figure this out.


_______________________________________________
arm mailing list
arm@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/arm
_______________________________________________
arm mailing list
arm@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/arm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM (Vger)]     [Linux ARM]     [ARM Kernel]     [Fedora User Discussion]     [Older Fedora Users Discussion]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

Powered by Linux