Log in to the ECS using VNC, modify the configuration file, and log in to the ECS through SSH.
The password is the one you set during the ECS creation.
service sshd restart