View previous topic :: View next topic |
Author |
Message |
ckwall Apprentice
Joined: 31 May 2002 Posts: 163
|
Posted: Fri Oct 18, 2002 3:02 pm Post subject: change SSH port |
|
|
Is it possible to change the port that my gentoo machine uses to listen for ssh? If so how do I do that and which port should I use. My firewall uses ssh, and I don't know how to change that, so in the mean time while trying to figure that out i will just change the gentoo machine if that is possible.
Thank you. |
|
Back to top |
|
|
Tuna Guru
Joined: 19 Jul 2002 Posts: 485 Location: Berlin
|
Posted: Fri Oct 18, 2002 3:38 pm Post subject: |
|
|
/etc/ssh/sshd_config
there you can find a line:
#Port 22
uncomment and change it to what you like.. someone please explain whats with that < and > 1024 ports.. im not a super duper tough guy in that matter.. |
|
Back to top |
|
|
ckwall Apprentice
Joined: 31 May 2002 Posts: 163
|
Posted: Fri Oct 18, 2002 3:52 pm Post subject: |
|
|
do I have to restart ssh for the change to take effect? If so how do I do that? |
|
Back to top |
|
|
spufi Tux's lil' helper
Joined: 25 Apr 2002 Posts: 119 Location: Mechelen - Belgium
|
Posted: Fri Oct 18, 2002 3:59 pm Post subject: |
|
|
ckwall wrote: | do I have to restart ssh for the change to take effect? |
Yes, you have to restart it
Quote: | If so how do I do that? |
well, as far as I know there are several ways to accomplish that:
- the dirty way:
"killall sshd" and reinitialise with "sshd"
or
- the cleaner way:
'sshd stop' and 'sshd start'
This is unconfirmed, couldn't test whether this also works ...
HIH |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Fri Oct 18, 2002 6:04 pm Post subject: |
|
|
Code: | # /etc/init.d/sshd restart |
_________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
|