Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
change SSH port
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ckwall
Apprentice
Apprentice


Joined: 31 May 2002
Posts: 163

PostPosted: Fri Oct 18, 2002 3:02 pm    Post subject: change SSH port Reply with quote

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
View user's profile Send private message
Tuna
Guru
Guru


Joined: 19 Jul 2002
Posts: 485
Location: Berlin

PostPosted: Fri Oct 18, 2002 3:38 pm    Post subject: Reply with quote

/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
View user's profile Send private message
ckwall
Apprentice
Apprentice


Joined: 31 May 2002
Posts: 163

PostPosted: Fri Oct 18, 2002 3:52 pm    Post subject: Reply with quote

do I have to restart ssh for the change to take effect? If so how do I do that?
Back to top
View user's profile Send private message
spufi
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2002
Posts: 119
Location: Mechelen - Belgium

PostPosted: Fri Oct 18, 2002 3:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Oct 18, 2002 6:04 pm    Post subject: Reply with quote

Code:
# /etc/init.d/sshd restart

_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum