Help me with SSH...

SSH

The Secure Shell (SSH) protocol provides remote shell access to your account on our servers. All data transferred across the SSH connection is protected by high-grade encryption, making it safe to use on insecure networks. SSH replaces obsolete protocols such as telnet and rsh, which do not encrypt traffic between the client and server.

The secure copy service uses the SSH protocol to provide secure file transfers.

Using SSH on UNIX-based systems

The OpenSSH package, which provides the ssh client program, is installed on most UNIX systems (including Linux and Mac OS X) by default. For more details please refer to the manual pages for OpenSSH, or the documentation for your distribution.

Connecting via OpenSSH is usually as simple as typing:

$ ssh [email protected]

Using SSH on Windows

For Windows users, we recommend the PuTTY client for SSH access to your account. It runs on all recent versions of Windows.

Client settings

You will need to use the following settings to access your mail through IMAP4:

Hostname remote.sjkwi.com.au
Port 22 (default)
Username Your primary username, e.g. user

Public key authentication

SSH provides a way to authenticate yourself using a public/private key pair. This means that you do not have to type a password when connecting.

You will need to place your public key at the end of the ~/.ssh/authorized_keys file on our servers. Please refer to your client documentation for details on how to generate a public/private key pair.

If you are using OpenSSH, you can append your public key to the authorized_keys file as follows (note you will need to type your password this last time):

$ cat ~/.ssh/id_rsa.pub | ssh [email protected] 'cat >> ~/.ssh/authorized_keys'

Connecting again should not require a password.

Secure copy

Secure copy (SCP) is used to transfer files securely from your local computer to our servers, using the SSH protocol. You can use it to upload files to your website so they are viewable online. It is often incorrectly called SFTP in some clients.

Using secure copy on UNIX-based systems

The OpenSSH package (described above) also provides the scp client to copy files between two computers. The usage of this command is as follows (adapted from the scp manual page):

scp -rp source1 ... [email protected]:dest

The -r argument enables recursive copy, which will copy an entire directory’s tree if one is given as a source argument. -p tells scp to preserve the modification times and modes of each file if possible.

To send two files and a directory to the website www.example.com, you would typically type the following:

$ scp -rp index.html file1.html images/ [email protected]:~/example.com/httpdocs

Client settings

Since secure copy uses SSH to transfer, the settings are the same as SSH, above.

Using secure copy on Windows

For Windows users, we recommend the FileZilla client for secure access to your account. When configuring, select the SCP or SFTP (FTP over SSH) option. It runs on all recent versions of Windows.