Results 1 to 5 of 5
I am trying to configure my ssh port from 22 to some non standard port no. availabe information on net suggests to change settings in /etc/ssh/sshd_config. I am not able ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-07-2010 #1Just Joined!
- Join Date
- Jun 2010
- Posts
- 3
ssh port configuration
I am trying to configure my ssh port from 22 to some non standard port no. availabe information on net suggests to change settings in /etc/ssh/sshd_config. I am not able to find sshd_config in my system. I am using ubuntu 9. I got some related sshdconfig file at some other location but could not find the settings in that file to change for port number.
any suggestions?
thanks in advance.
- 06-08-2010 #2
- 06-08-2010 #3Just Joined!
- Join Date
- Jun 2010
- Posts
- 3
it is solved partially now. actually Ubuntu installs client side only so there was no no sshd_config. I installed openssh-server and it worked.
I made changes in sshd_config, restart the ssh server and also checked for new port as listening but could not login to a remote machine.
another problem that I add the new port in iptable too but nmap never shows this new port as open port or designated for SSH service so I reverted back to old settings with port 22 and everything was working as before. I mean I could login to remote machine. I don't know what else I should do to make it working with new port no.
- 06-08-2010 #4
you have to change the port in sshd_config or whatever ubuntu puts it at, open the port in all firewalls, and i you're using a router, forward that port to your specific computer. once that's done, and you start sshd, it should connect OK. If not, you missed a step, or have something wacky.
can you run
`ssh -p $portnumber localhost`
and get a connection?New to the internet, technical forums, or the hacker / open source community??
Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html
RHCE for RHEL version 5
RHCT for RHEL version 4
- 06-08-2010 #5Just Joined!
- Join Date
- Jun 2010
- Posts
- 3
thanks.
I got it.


Reply With Quote

