SSH

From apnsGuide

Jump to: navigation, search

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

Important Login Information
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


Logging in with just the username will not succeed. You must include the domain name. This is true for all logins except for MySQL and Urchin.

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.

Personal tools