Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

i rented a virtual machine with ubuntu server. I logged in via the ssh-command in the terminal from my ubuntu home pc. Before i exited, i accidentally typed "stop ssh" in the terminal, because i thought it would end my ssh-session with the server. At the end "exit" did it - now i cant connect anymore to the server using "ssh user@host" with the error message:

ssh: connect to host HOSTNAME port 22: Connection refused

I think i shut down the ssh-module in the server. As an alternative connection way, i already tried the "sftp user@host" command, but in the end this command also tries to ssh to the server. As i rented this virtual machine, i don't have direct access to the servers file structure to change a configuration file or something like that. Is there any other way except ssh to connect to the server?

Thanks in advance

share|improve this question
    
Do you have other means to reach the console of your VPS? Many hosting providers offer a console (via Ajaxterm or a Java applet) to reach the server if you locked yourself out. Please ask support with your hosting provider - we can't do anything from here, really. –  gertvdijk Jul 16 '13 at 23:57

2 Answers 2

You will have to ask the owner of the VPS to either reboot the VPS or log in and restart the ssh server.

share|improve this answer

Is a VPS within a provider?

Reboot the server from the VPS control panel. Have your provider any tool to remotelly connect with the virtual server like the Lish terminal from Linode?, it works indenpendently from the server sshd.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.