Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
using ssh on another port besides 22 (can this be done?)
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
ltzany
n00b
n00b


Joined: 13 Oct 2004
Posts: 38
Location: Norristown, PA

PostPosted: Tue Nov 16, 2004 3:48 pm    Post subject: using ssh on another port besides 22 (can this be done?) Reply with quote

I want to be able to ssh to my machine through a port besides 22. I have changed the sshd_config file but i cannot ssh to my machine through a port besides 22. is there a file that i forgot to change? it works fine with port 22, so my router is not the problem. thanks for your help...
Back to top
View user's profile Send private message
tripmcneely187
n00b
n00b


Joined: 10 Dec 2003
Posts: 5
Location: Iowa

PostPosted: Tue Nov 16, 2004 4:30 pm    Post subject: Reply with quote

Did you restart sshd with '/etc/init.d/sshd restart'? Also, are you telling your client which port to ssh to? e.g. ssh user@remotepc:999
Back to top
View user's profile Send private message
liber!
Tux's lil' helper
Tux's lil' helper


Joined: 05 Aug 2004
Posts: 123
Location: EU, Antwerp

PostPosted: Tue Nov 16, 2004 4:35 pm    Post subject: Reply with quote

use ssh -l user -p PORTNR hostname

Does it still doesn't work? Then there's something wrong with the iptables, the sshd config file.

P.S. Can you connect to port 22?
Nathan
Back to top
View user's profile Send private message
ltzany
n00b
n00b


Joined: 13 Oct 2004
Posts: 38
Location: Norristown, PA

PostPosted: Tue Nov 16, 2004 4:44 pm    Post subject: Reply with quote

tripmcneely187 - yes, i restarted sshd once i made the initial changes and i am telling the client i use what port to connect to.

liber! - port 22 works fine (see initial post).

I guess I should check out iptables? and i've done a bit of reading on xinetd. what about needing to change server arguments? is there a file for that?
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