after changing port cannot login to ssh

Started by mayank_pasi, February 05, 2017, 07:34:42 AM

Previous topic - Next topic

mayank_pasi

hi

I am new in ssh. so first time I Chang my sshd port then its

ssh ip:port
ssh: Could not resolve hostname ip.ip.ip.ip:port: Name or service not known

what i do next????

locvfx

Open browser and use your admin panel, go to Services config > SSH Configuration
Remove the line you added (the port), save file and try to connect to your server again

botonakis

When you change the ssh port you need to restart ssh service
It's funny that: centos-webpanel.com has cPanel and not CWP installed.

Sandeep

if you've csf firewall enabled then you need to add the port to it.