SSH
From apnsGuide
Contents |
Overview
Shell access is available for accounts of the Basic tier and higher.
Important: Do not use the shell for IRC access, BitTorrents, or dedicated services. Failure to comply with those restrictions may result in an account cancellation.
Usage
Logging In
The login mechanism is shared between FTP, SSH, apnscp esprit, SMTP, and IMAP/POP3. FTP, SSH, and e-mail use the same login system of
user@domain. If your client does not properly interpret @ as part of the login, then you may swap @ with #. Logins should always be provided in lowercase
Using a text-based ssh client, you would use ssh username#yourdomain.com@yourdomain.com or equivalently, ssh -l username@yourdomain.com yourdomain.com
Changing the home directory
If you'd like to change change the default directory that you login to edit the file called .bashrc in your home directory - /home/user. You may change the HOME environment variable, but it will be canceled out. Simple change the directory to where you'd like to be. For example from /home/example_user to /var/www:
# .bashrc example file cd /var/www
Questions
Which forms of SSH are allowed?
Only SSHv2 may be used to connect to the server on port 22.
Troubleshooting
My keys are setup, but I still cannot authenticate with public keys
Ensure the permissions on ~/.ssh/ are 700 (u: rwx, g: -, o: -) and ~/.ssh/authorized_keys is 600 (u: rw-, g: -, o: -). Provided the permissions are correct, then make sure your public key is listed in the authorized_keys file.
