Virtualization

Overview: Using SSH to Connect to Remote Computers



We’ll take a look at remote systems and accessing them with ssh.

In this video I show how to ssh to another system using your password. Then we setup an ssh key and copy the public key to the remote system. Then we look at port forwarding with the -L option, and discuss (but not cover) the -D and -R options. See the chapters below for detailed info:
00:00 Intro
00:30 Look at man page for ssh
00:55 We’ll cover the -L option, -D is different, it’s local forwarding
1:24 Also not going to cover -R, which is remote forwarding
2:18 What is a remote computer?
3:15 What is the remote computer in this video? a virtual machine (VM)
3:46 Simple ssh, user considerations
4:55 Actual ssh command, ssh jim@192.168.1.184
5:40 See ps aux | grep ssh command on remote machine
5:59 See the ssh agent and server running on remote machine
6:37 Make an ssh key
8:10 Running the ssh agent in an elevated Windows Powershell
9:18 Back to regular command window for ssh-add
9:44 Need to get the new key to the remote server
10:30 ssh command to copy key to remote server
11:05 ssh with a command on the end
12:00 Now, ssh without a password
12:20 ssh -L port forwarding, explain remote computer is VM running Docker website
13:45 ssh -L command to forward VM website to port 8989 on host
14:20 already running a webserver on host’s port 80, so need another local port (also we tend not to use reserved/privileged ports 1024 and lower, if not necessary)
14:40 Finally the actual ssh -L command
15:24 Now go look at localhost:8989 on the Windows host system
15:46 Let’s talk about scp
16:45 scp a file to a remote server
17:00 Need a colon and path after the user@remote_host
17:28 Never mind what I say about that operation making the key work
17:30 scp a file from remote to host system
18:10 Execute the scp command like this: scp -r jim@remote:/path/to/file .
19:10 Yes you get to use . in Windows
19:45 Invitation to put on your hacker hat, scp for the win, skip directory sharing
20:25 I tell you to use vi, because it will make you a better person
20:45 Wrap-up, will make video about ssh keys

Keep an eye out for the next videos which will cover more uses for ssh and a lot more info about ssh keys.

[ad_2]

source

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button