From the course: Ubuntu Linux: Essential Commands and System Administration
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Connecting with SSH
From the course: Ubuntu Linux: Essential Commands and System Administration
Connecting with SSH
To connect to a remote system running SSH Server, we need to have an account on that server. We also need to know that server's network address. I'll run ip a here on my virtual machine to see what its address is. In my case, it's 192.168.1.77, assigned by DHCP here on my lab network. If you're setting up a server, you'll want to have it on a static address. But while we're practicing with SSH, a dynamic address is fine. I'll switch over here to my workstation, another Ubuntu machine on my lab network. To connect to my virtual machine, I'll type ssh, my username, the @ sign, and then the network address of my remote system. This will connect on the default port. If I needed to use a different remote port, I could use the port command with -oPort equals, and for example, 2222. But here, we'll just use the normal Port 22. I'll press Enter, and I'm greeted with some information. First, I'm asked if I want to accept the server's key. This key is generated when OpenSSH Server is installed,…