Portal Home > Knowledgebase > Articles Database > how to recover ssh port


how to recover ssh port




Posted by knoppix, 05-15-2009, 02:49 AM
Hello, im doing this in favor of my friend who is having some problem with his dedicated server,"he does not speak english very well" he has a unmanaged dedicated server he changed something on his ssh port and forgot what port is it, he can still access his WHM right now, meaning he know's the root password "correct" but the problem is he forgot his ssh port

Posted by yonatanp, 05-15-2009, 03:04 AM
use nmap ? or, maybe he has a KVM service, so you can login localy? what about tech support from his provider?, im sure they will be glad to help you (or am i wrong?)

Posted by knoppix, 05-15-2009, 03:10 AM
my friend said its a unmanaged server and at the first place he was the one who changed the port so im sure tech's wont help him from his doings ( i dunno ) whatst KVM? and yes we can login to his WHM without problem using his root account

Posted by yonatanp, 05-15-2009, 03:17 AM
what about useing NMAP ? you already know the IP, so probe it and look for open ports,

Posted by plumsauce, 05-15-2009, 03:53 AM
KVM over ip is the ability to have Keyboard, Video Monitor access using, usually, a java based client in your browser. Most hosts will have kvm access for themselves, so it is not a big deal to help you out, unmanaged or not. It it is, time to move on.

Posted by gregacsok, 05-15-2009, 04:01 AM
Yeah, what he said. Assuming you have access to another server (linux, freebsd, etc) type: nmap (ip address) if not, then I suggest your buddy to ask tech support to plug it into a monitor and check it, assuming he doesn't have KVM. once nmap is finished, it'll tell you this type of info: Interesting ports on machine (ip goes here): Not shown: 1699 closed ports PORT STATE SERVICE 21/tcp open ftp 22/tcp open ssh 25/tcp filtered smtp 53/tcp open domain 80/tcp open http 113/tcp open auth it'll tell you what port ssh is running on. good luck.

Posted by WebNaz, 05-15-2009, 04:28 AM
As a last resort you can try WHM autofixer Login to WHM and then change the URL to http://x.x.x.x:2086/scripts2/doautof...safesshrestart (change x.x.x.x with your main IP) This should reset SSH to it's default configuration & remove any custom configurations you may have done. You can read more about WHM autofixer and what each script does here http://httpupdate.cpanel.net/autofixer/

Posted by robclarkey, 05-15-2009, 04:48 AM
Once hes managed to find out the port I would recommend he installs something like ConfigServer Explorer so that next time he changes something like this, he can always change it back without the need of SSH access. Works directing inside WHM, great tool. http://www.configserver.com/cp/cse.html

Posted by 10gbus, 05-15-2009, 05:26 AM
Just contact the datacenter and tell them to recover the ssh port or change it to the standard 22. They will do it no matter they are providing managed or unmanaged hosting

Posted by TmzHosting, 05-15-2009, 06:47 AM
Even if the host is unmanaged they should still be able to help you with that. - Daniel

Posted by 10gbus, 05-15-2009, 06:49 AM
Yea that is what I've said above

Posted by net, 05-15-2009, 06:50 AM
Moved > Technical & Security Issues.

Posted by 10gbus, 05-15-2009, 07:10 AM
Can you tell me the datacenter name ?

Posted by knoppix, 05-15-2009, 09:31 AM
Thanks guys, he have CSF installed i look at his CSF config and check those ports that he allow for outgoing and incoming i test each one of them and we found it, PS: i cant use nmap or any scanner because CSF blocks it, i believe he got his sever from the planet

Posted by jshtoch, 05-16-2009, 01:19 AM
He should contact his data center. They should be able to reset the ssh port.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
VMware API for WHMCS (Views: 439)
MS Exchange Email? (Views: 463)