Passwordless SSH logins using private keys and .ssh/config

These instructions will work on any computer that uses OpenSSH such as macOS or most Linux/Unix systems. The process for generating keys on other platforms will vary but the general principle is the same.

  • Open your Terminal app and generate a new key pair by typing ssh-keygen at the shell prompt. You should see:
Generating public/private rsa key pair.
Enter file in which to save the key (/home/username/.ssh/id_rsa):

Press Enter to confirm the default location (that is, ~/.ssh/id_rsa) for the newly created key and the press enter twice more when prompted for a passphrase.

  • After this, you will be presented with a message similar to this:
Your identification has been saved in /home/username/.ssh/id_rsa.
Your public key has been saved in /home/username/.ssh/id_rsa.pub.
The key fingerprint is:
e7:97:c7:e2:0e:f9:0e:fc:c4:d7:cb:e5:31:11:92:14 alfie@example.com
The key's randomart image is:
+--[ RSA 2048]----+
|             E.  |
|            . .  |
|             o . |
|              . .|
|        S .    . |
|         + o o ..|
|          * * +oo|
|           O +..=|
|           o*  o.|
+-----------------+
  • Change the permissions of the ~/.ssh/ directory to 700 to ensure it is only accessible by your user ID:
$ chmod 700 ~/.ssh
  • Copy the content of ~/.ssh/id_rsa.pub into the ~/.ssh/authorized_keys on the machine to which you want to connect, appending it to its end if the file already exists.
  • Set the permissions of the ~/.ssh/authorized_keys file using the following command:
$ chmod 600 ~/.ssh/authorized_keys

How to create an SSH shortcut

To create a custom ssh connection so you don’t need to type the IP address of your server every time, type from your home directory:

nano .ssh/config

then enter the following below

Host shortcutname
HostName 10.11.12.13
IdentityFile ~/.ssh/id_rsa
PreferredAuthentications publickey
Port 22
User root

Save the file and exit nano. You can now connect to the server using the command ssh shortcutname without having to enter any additional connection information or password.

How to check if your IP address is blocked by our firewall

Our Hosted Email and Web Hosting services are protected by multiple layers of security systems, one of which is a brute force attack detection mechanism. A brute force attack is when a malicious user keeps trying to access your account over and over again using commonly used passwords or by guessing what your password might be. Blocking this kind of attack is a very effective way of protecting your sites and email accounts from malicious access.

Every now and again it happens that a legitimate user forgets their password or mistypes it a few times and ends up blocking themselves. This can be very frustrating, so to make your life easier we have build a little utility that you can use to check if you’ve been blocked by our firewalls, and you can even use it to unblock yourself immediately.

To check your IP address if it’s blocked on any of our servers just visit https://blocked.anu.net/

Once loaded you should be able to see something like the picture below

NOTE: IP address is auto detected so if you want to check an IP address from a different location, just replace the detected IP address on the search box with the IP address you want to check.

If you are seeing “Not Blocked” next to all the servers then that means you are not blocked by our firewalls. You should be able to access your sites and email accounts.

If you are seeing one of the server is showing as “Blocked” in red letters, then you can just click on “Unblock IP Address” button to unblock yourself.

If you are still having difficulty accessing your website or email address, or if you encounter any difficulties with the self service unblocking tool, please do not hesitate contact us via live chat or by email to support@anu.net.

How to Change your Hosted Email mailbox password

To change your Hosted email password:

  1. In your browser, go to https://portal.anu.net and use your Hosted Email address to login.
  2. Once you are in, Click on Email Settings and once you are on the Email settings page, under Password on the Change password field tick on “Change”, then a new field will appear to let you type your new password.

3. Type in your new password on the Password field and repeat it in the Password (Confirm) field.

4. Navigate to the bottom of the page and hit “Save” button.

5. Your new password has now been set. Make sure to update the settings in any email clients that had the old password saved, including any mobile devices connected to the account. If you have any questions or run into any problems please do not hesitate to reach out to us via Live Chat or email support@anu.net. Tip: if you can’t access your email via your regular email program due to authentication failures, you can always log in to Webmail and email us from there!