Teaching Research and Publishings Speaking Engagements Professional Development About Me

Notice: Undefined variable: connect in /var/www/codeadam.ca/includes/header.php on line 20

Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /var/www/codeadam.ca/includes/header.php on line 20

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /var/www/codeadam.ca/includes/header.php on line 22

Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /var/www/codeadam.ca/includes/header.php on line 24

Server Setup Documents


Setup SFTP

Use Putty on a Windows machine or the Terminal on a Mac to generate a private and public key.

Go to Virtual Machines/Settings/Metadata and then choose SSH Keys. Click Edit, paste in the public key (the key file with the .pub extension), and then click save.


Update SSH Setgings

Open up your terminal and run the following command:

sudo nano /etc/ssh/sshd_config

Uncomment the line that starts with #PermitRootLogin and change it to PermitRootLogin without-password. Then restart the SSH service:

sudo systemctl reload sshd.service

Filezilla Settings

Open up Filezilla. Click Settings in the main Filezilla menu, click SFTP, and then add the private key (the key file with no extension).

Create a new site connection. Use your VM Instance IP address as the host, root as the username, and no password. Click connect and accept any certificate warnings.