In: Computer Science
Write down what you did to accomplish each task. 1. Inspect /etc/passwd find your account. 2. Inspect /etc/shadow. What is each field displaying? 3. Add a new user to your system. Call the user "user1" with password "user" . 4. How do you inspect your environment variables. 5. Install openssh server 6. Check to see if it is up and running.
1. I have username linux, so you can find it at second last line
2.
shadow
stores encrypted form of the password of a user
3. sudo useradd user1
sudo passwd user1
4. We can list the environment variables with
printenv name_of_env
e.g
printenv HOME
5. sudo apt-get install openssh-server
sudo systemctl enable ssh
sudo systemctl start ssh
6. Test it using
ssh user@server-name