Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a75f437

Browse files
authored
Replace 'username' with 'your-username' for clarity in SSH setup instructions
1 parent bbd0604 commit a75f437

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Commands.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Configure SSH Access
2-
sudo -u username mkdir -p /home/username/.ssh
3-
sudo -u username chmod 700 /home/username/.ssh
2+
sudo -u your-username mkdir -p /home/your-username/.ssh
3+
sudo -u your-username chmod 700 /home/your-username/.ssh
44

5-
sudo chown -R username:username /home/username/.ssh
5+
sudo chown -R your-username:your-username /home/your-username/.ssh
66

7-
sudo -u username touch /home/username/.ssh/authorized_keys
8-
sudo -u username chmod 600 /home/username/.ssh/authorized_keys
7+
sudo -u your-username touch /home/your-username/.ssh/authorized_keys
8+
sudo -u your-username chmod 600 /home/your-username/.ssh/authorized_keys
99

10-
sudo chmod 755 /home/username
11-
sudo chown username:username /home/username
10+
sudo chmod 755 /home/your-username
11+
sudo chown your-username:your-username /home/your-username
1212

1313
// Create SUDO User
1414
adduser username

0 commit comments

Comments
 (0)