View previous topic :: View next topic |
Author |
Message |
ltzany n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Oct 2004 Posts: 38 Location: Norristown, PA
|
Posted: Tue Nov 16, 2004 3:48 pm Post subject: using ssh on another port besides 22 (can this be done?) |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
tripmcneely187 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Dec 2003 Posts: 5 Location: Iowa
|
Posted: Tue Nov 16, 2004 4:30 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
liber! Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 05 Aug 2004 Posts: 123 Location: EU, Antwerp
|
Posted: Tue Nov 16, 2004 4:35 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
ltzany n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Oct 2004 Posts: 38 Location: Norristown, PA
|
Posted: Tue Nov 16, 2004 4:44 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|