Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dpkg --get-selections | grep openssh
- ssh-keygen to generate keys
- Generating public/private rsa key pair.
- Enter file in which to save the key (/home/ubuntu/.ssh/id_rsa):
- /home/ubuntu/.ssh/id_rsa already exists.
- Overwrite (y/n)? y
- Enter passphrase (empty for no passphrase):
- Enter same passphrase again:
- Your identification has been saved in /home/ubuntu/.ssh/id_rsa.
- Your public key has been saved in /home/ubuntu/.ssh/id_rsa.pub.
- The key fingerprint is:
- SHA256:PWp6Z7apDhYGz+Uv2uu9bCUj4JabRLq9u5kWQymqlY0 ubuntu@ubuntu
- The key's randomart image is:
- +---[RSA 2048]----+
- | |
- | |
- | . .. |
- | .+=o . |
- | = *=oS o |
- | E o.B..oo.. |
- | o =o=+..+ |
- |. ..=O.+=. |
- | .OB*B*o |
- +----[SHA256]-----+
- Directory: carsonDir
- Username: carson
- sudo useradd -d /home/carsonDir -m carson
- sudo passwd carson
- Enter new UNIX password: password
- Retype new UNIX password: password
- passwd: password updated successfully
- cd /home/carsonDir
- sudo mkdir .ssh
- ifconfig:
- 10.97.85.6
- when client calls command firefox:
- ubuntu@ubuntu:/home/carsonDir$ ps aux | grep firefox
- carson 12218 12.0 2.8 1065948 235360 pts/18 Sl+ 13:04 0:03 /usr/lib/firefox/firefox
- ubuntu 12338 0.0 0.0 21292 932 pts/2 S+ 13:04 0:00 grep --color=auto firefox
- ubuntu@ubuntu:/home/carsonDir$ ps aux | grep firefox
- carson 12345 41.6 2.4 869224 196216 pts/18 Rl+ 13:04 0:01 /usr/lib/firefox/firefox
- carson 12403 18.0 0.9 612672 80840 pts/18 Sl+ 13:04 0:00 /usr/lib/firefox/plugin-container -greomni /usr/lib/firefox/omni.ja
- after client closes firefox:
- ubuntu@ubuntu:/home/carsonDir$ ps aux | grep firefox
- ubuntu 12344 0.0 0.0 21292 936 pts/2 S+ 13:04 0:00 grep --color=auto firefox
- So the client has connected to the server.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement