Re: [CentOS] Running SSH on a different port

2009-10-27 Thread Ryan Lynch
On Mon, Oct 26, 2009 at 23:54, David Suhendrik wrote: > Need more secure only allow access ssh from intranet or by VPN. > CMIIW Not a bad suggestion. It's somewhat more heavyweight and restrictive, but if you're paranoid enough to worry about 0-day OpenSSH server exploits, this could help you sle

Re: [CentOS] Running SSH on a different port

2009-10-26 Thread David Suhendrik
http://www.iana.org/assignments/port-numbers See unassigned port, and You should to use it Need more secure only allow access ssh from intranet or by VPN. CMIIW Regards, David ./nobody Michael Kress wrote: > ML wrote:

Re: [CentOS] Running SSH on a different port

2009-10-26 Thread Ryan B. Lynch
On 10/26/2009 07:41 PM, Michael Kress wrote: > ML wrote: > >> So I added Port 2977 Under Host * >> >> So I have: >> Host * >> Port 2977 >> >> > Never post your real port number here. Otherwise you don't need to hide > it from the public. Right? ;-) > I'm not sure if this is a serious

Re: [CentOS] Running SSH on a different port

2009-10-26 Thread Michael Kress
ML wrote: > So I added Port 2977 Under Host * > > So I have: > Host * > Port 2977 > Never post your real port number here. Otherwise you don't need to hide it from the public. Right? ;-) Regards Michael -- Michael Kress, kr...@hal.saar.de ___ Cen

Re: [CentOS] Running SSH on a different port

2009-10-26 Thread Lorenzo Quatrini
2009/10/25 Les Mikesell : > Gilbert Sebenste wrote: >> On Sat, 24 Oct 2009, Philip Gwyn wrote: >> >>> On 24-Oct-2009 Oliver Ransom wrote: I don't think there are any ramifications/disadvantages of running the SSH daemon on a non standard port. >> >> Unless I want to sftp. It always looks

Re: [CentOS] Running SSH on a different port

2009-10-25 Thread Robert Moskowitz
ML wrote: > HI All, > > With my new firewall in place, it has opened my eyes to how much > traffic gets blocked in a single day and also what are the most active > rules. I get *a lot* of requests for port 22. > > How does one switch ssh ports? What is a good port to use? What > ramifications

Re: [CentOS] Running SSH on a different port (with SELinux)

2009-10-25 Thread Jorge Fábregas
On Sunday 25 October 2009 03:06:58 pm Ned Slider wrote: > The SSH daemon runs as an unconfined service in SELinux (at least on > RHEL4 and 5), so SELinux has no effect on SSH. Same as a bash shell runs > unconfined. Thanks Ned! That's it. I missed the following check: # ps -eZ | grep sshd root

Re: [CentOS] Running SSH on a different port (with SELinux)

2009-10-25 Thread Ned Slider
Jorge Fábregas wrote: > Hello everyone, > > Now after the recent discussion on running SSH on a different port, I > decided > to start a new thread but with SELinux involved. > > Assuming that you have SELinux enabled, and that you changed the default port > for SSHD, let say for 1234, when I

[CentOS] Running SSH on a different port (with SELinux)

2009-10-25 Thread Jorge Fábregas
Hello everyone, Now after the recent discussion on running SSH on a different port, I decided to start a new thread but with SELinux involved. Assuming that you have SELinux enabled, and that you changed the default port for SSHD, let say for 1234, when I restart SSHD I don't get any AVC denia

Re: [CentOS] Running SSH on a different port

2009-10-25 Thread Les Mikesell
Gilbert Sebenste wrote: > On Sat, 24 Oct 2009, Philip Gwyn wrote: > >> On 24-Oct-2009 Oliver Ransom wrote: >>> I don't think there are any ramifications/disadvantages of running the >>> SSH daemon on a non standard port. > > Unless I want to sftp. It always looks for port 22; if I do: > > sftp S

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread Gilbert Sebenste
On Sat, 24 Oct 2009, Benjamin Donnachie wrote: > 2009/10/24 Gilbert Sebenste : >> It will deny me if SERVER is anything but port 22. Doing a man sftp yields >> no help on how to solve that. Any ideas? > >> From memory, try -o Port=222 > > Ben Thanks to all who responded. That's what I was looking

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread Benjamin Donnachie
2009/10/24 Gilbert Sebenste : > It will deny me if SERVER is anything but port 22. Doing a man sftp yields > no help on how to solve that. Any ideas? >From memory, try -o Port=222 Ben ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mai

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread Gilbert Sebenste
On Sat, 24 Oct 2009, Philip Gwyn wrote: > On 24-Oct-2009 Oliver Ransom wrote: >> I don't think there are any ramifications/disadvantages of running the >> SSH daemon on a non standard port. Unless I want to sftp. It always looks for port 22; if I do: sftp SERVER It will deny me if SERVER is any

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread Philip Gwyn
On 24-Oct-2009 Oliver Ransom wrote: > I don't think there are any ramifications/disadvantages of running the > SSH daemon on a non standard port. Running sshd on a non-standard port is highly useful ; I always have 2 seperate sshd instances. One on 22 and one on 222. This way, if I muck up a

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread ML
>>> I then did: service sshd restart >>> >>> >> > > >> Have you restarted the ssh daemon after changing the config file? >> > > Ooops, I really need to not post to the mailing list when I am tired. > > My second question still stands, Also, have you run nmap on your > host to > verify that the

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread Tait Clarridge
> > > > I then did: service sshd restart > > > > > > Have you restarted the ssh daemon after changing the config file? > Ooops, I really need to not post to the mailing list when I am tired. My second question still stands, Also, have you run nmap on your host to verify that the port is

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread Tait Clarridge
On Sat, 2009-10-24 at 07:17 -0700, ML wrote: > >>> In /etc/ssh/sshd_config replace "port 22" with "port >>> port > >>> (> 1024) you like>" > >>> > >>> Then configure your ssh clients accordingly. > >> > >> So I added Port 2977 Under Host * > >> > >> So I have: > >> Host * > >> Port 2977 > >> > >>

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread Kevin Krieser
As mentioned previously, requiring certificates, and not allowing interactive logins, is safest. But even if you decide to allow interactive logins, there are things you SHOULD do. Disable admin/root login. Update sshd so that only named users can login via SSH, all other users that might

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread ML
>>> In /etc/ssh/sshd_config replace "port 22" with "port >> port >>> (> 1024) you like>" >>> >>> Then configure your ssh clients accordingly. >> >> So I added Port 2977 Under Host * >> >> So I have: >> Host * >> Port 2977 >> >> I rebooted and I get a connection refused now when I try to connect. >

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread Oliver Ransom
On 25/10/2009, at 12:10 AM, ML wrote: > >>> How does one switch ssh ports? What is a good port to use? What >>> ramifications does it have when I need to ssh in? Is it as simple as >>> ssh u...@hots:port? >>> >> >> In /etc/ssh/sshd_config replace "port 22" with "port > port >> (> 1024) you like>"

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread mark
ML wrote: >>> How does one switch ssh ports? What is a good port to use? What >>> ramifications does it have when I need to ssh in? Is it as simple as >>> ssh u...@hots:port? >>> >> In /etc/ssh/sshd_config replace "port 22" with "port > port >> (> 1024) you like>" >> >> Then configure your ssh clie

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread ML
Mark, > One more thing - you might want to look at authfail. After a number > of attempts > to log in, it will add firewall rules to block that IP address. Thanks for the advice! I will google it. -ML ___ CentOS mailing list CentOS@centos.org http:/

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread ML
Ned, > Pretty much everything you need to know about SSH is on the Wiki here: > > http://wiki.centos.org/HowTos/Network/SecuringSSH > > Why don't people use the Wiki? These same topics come up over and over > again, and no one ever refers to the resources available on the Wiki? Thanks for the lin

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread mark
One more thing - you might want to look at authfail. After a number of attempts to log in, it will add firewall rules to block that IP address. mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread mark
Stephen Wong wrote: > Change the port statement in /etc/ssh/sshd_config and restart sshd > > Alternatively, you can make a port direction on your firewall, say, > from TCP port 1234 to internal IP 22. Then, you don't need to change > the server config. One thing to consider: an attacker with a c

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread ML
> Pretty much everything you need to know about SSH is on the Wiki here: > > http://wiki.centos.org/HowTos/Network/SecuringSSH > > Why don't people use the Wiki? These same topics come up over and over > again, and no one ever refers to the resources available on the Wiki? I dont think it is well

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread ML
>> How does one switch ssh ports? What is a good port to use? What >> ramifications does it have when I need to ssh in? Is it as simple as >> ssh u...@hots:port? >> > > In /etc/ssh/sshd_config replace "port 22" with "port port > (> 1024) you like>" > > Then configure your ssh clients accordingly.

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread Ned Slider
ML wrote: > HI All, > > With my new firewall in place, it has opened my eyes to how much > traffic gets blocked in a single day and also what are the most active > rules. I get *a lot* of requests for port 22. > > How does one switch ssh ports? What is a good port to use? What > ramificatio

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread Stephen Wong
Change the port statement in /etc/ssh/sshd_config and restart sshd Alternatively, you can make a port direction on your firewall, say, from TCP port 1234 to internal IP 22. Then, you don't need to change the server config. My 2 cents. Stephen WONG @ Hong Kong On Sat, Oct 24, 2009 at 9:23 PM,

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread Oliver Ransom
On 24/10/2009, at 11:40 PM, Miguel Medalha wrote: > >> How does one switch ssh ports? What is a good port to use? What >> ramifications does it have when I need to ssh in? Is it as simple as >> ssh u...@hots:port? >> > > In /etc/ssh/sshd_config replace "port 22" with "port port > (> 1024) you li

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread Oliver Ransom
On 24/10/2009, at 11:26 PM, ML wrote: > HI All, > > With my new firewall in place, it has opened my eyes to how much > traffic gets blocked in a single day and also what are the most active > rules. I get *a lot* of requests for port 22. Look in /etc/ssh/sshd_config You can specify the port the

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread Miguel Medalha
> How does one switch ssh ports? What is a good port to use? What > ramifications does it have when I need to ssh in? Is it as simple as > ssh u...@hots:port? > In /etc/ssh/sshd_config replace "port 22" with "port 1024) you like>" Then configure your ssh clients accordingly. I was havin

Re: [CentOS] Running SSH on a different port

2009-10-24 Thread Craig White
On Sat, 2009-10-24 at 05:56 -0700, ML wrote: > HI All, > > With my new firewall in place, it has opened my eyes to how much > traffic gets blocked in a single day and also what are the most active > rules. I get *a lot* of requests for port 22. > > How does one switch ssh ports? What is a goo

[CentOS] Running SSH on a different port

2009-10-24 Thread ML
HI All, With my new firewall in place, it has opened my eyes to how much traffic gets blocked in a single day and also what are the most active rules. I get *a lot* of requests for port 22. How does one switch ssh ports? What is a good port to use? What ramifications does it have when I nee