Ubuntu – Is there any way to change ssh or vnc config using ftp

ftpnetworkingsshvnc

I have a remote server which I can't access physically, for the last couple of weeks I could connect to it using both FTP protocol and VNC remote desktop. I changed the "Desktop Sharing" Program in ubuntu to get acess to its desktop. from yesterday, my access to my server using VNC protocol is not possible. I can ping my server and Connect to it using Filezilla for FTP transmission but When I want to connect to it using VNCviewer or SSH it gives the following error message:

VNC VIEWER :

"The connection was refused by the host computer"

SSH:

ssh: connect to host 10.136.9.153 port 22: Connection refused

I can only connect to my server using FTP protocol. I don't have a vnc server installed on my server so I think maybe the "Desktop sharing" program is failed. firewall if off. Also I can't change any files in /etc/ or /var/ or any root folders using FTP protocol. is there any way to access my server in this situation ?

Edited:
I've rebooted my system by cutting off the electricity but still it gives the above error message.

Best Answer

Looks like you've got the same problem I had a few years ago, though I only had to put a router in my back-pack!

A few hints before you go trek up a mountain:

  • Take a new server identical to the one you've locked yourself out of just in case you can't solve the problem with physical access.
  • Have an Iridium phone plugged into a modem attached to the new server so you can always dial in if the excrement hits the fan (like now)
  • Ensure the new server has fully redundant hardware (dual Power supply, NICs, RAID 1, ...)
  • Ensure you have dual switches in the facility.
  • Leave the new server behind even when you get the first one up-and-running.

And most important of all: from now on, have a test server next to you so you can test things out before you change production servers on mount Everest!

Sorry to be the harbinger of bad news...

Related Question