If you have lost SSH access to your Cloud server, you can access it by the console in order to see what the problem is and fix it.
Activating the console¶
To activate the console, navigate to the “Emergency Console” tab on your server’s management page, and then click on the “Activate console” button.
Once the console is activated, you can connect to it via ssh :
$ ssh email@example.com
The password that you provide will be the one that you chose during the initial creation of your server.
Once you are done using the emergency console, you can deactivate it from the same page within your account.
The emergency console will work if the VPS is running, the version of the console depends on the kernel version.
To get a working emergency console, you will have to update the console version in regard to the kernel, on the Gandi.net control panel, go to the advanced mode of the system disk, find below the list of corresponding consoles for the concerned kernel :
2.6.18 | xvc0 2.6.27 | tty1 2.6.32 | hvc0 2.6.36 | hvc0 3.2 | hvc0 3.10 | hvc0 grub | hvc0 raw | hvc0
Restart the VPS in order to apply the changes, if you change to the right console, it will work fine, you will be able to login in your virtual server.
Escape commands and SysReq¶
The escape commands are available by typing simultaneously on
~? after a line return (Type Enter first) :
root@ai2:~# ~? Supported escape sequences: ~. - terminate connection (and any multiplexed sessions) ~B - send a BREAK to the remote system ~C - open a command line ~R - Request rekey (SSH protocol 2 only) ~^Z - suspend ssh ~# - list forwarded connections ~& - background ssh (when waiting for connections to terminate) ~? - this message ~~ - send the escape character by typing it twice (Note that escapes are only recognized immediately after newline.)
The Sysreq commands are available by typing simultaneously on
CTRL + O (o, not zero) then type on the letter
root@ai2:~# SysRq : HELP : loglevel0-8 reBoot tErm Full kIll saK aLlcpus showMem Nice powerOff showPc show-all-timers(Q) unRaw Sync showTasks Unmount shoW-blocked-tasks
H by the uppercase letter of the wanted command or a number for the loglevel.
To restart your VPS for example, type on
CTRL + O then
SSH Key Fingerprint¶
The SSH key fingerprint for console.gandi.net is :