I want to connect to remote server through Ubuntu shell. I am using ssh root@serverIP
in Ubuntu shell but I receive this msg:
connect to host xxx.xxx.xx.xx port 22: Connection refused
This IP is on port 30 not 22. I have also changed the port by using sudo gedit /etc/ssh/sshd_config
to 30 and I think it is saved. But again when I want to log in I receive the same error that connection on port 22 is refused.
/etc/init.d/ssh restart
or similar.