SSH, or Secure Shell, is your key to securely accessing and managing your Ubuntu machine from anywhere in the world. Whether you're troubleshooting a server, transferring files, or simply want the convenience of remote control, SSH makes it possible.
This quick set up procedure will guide you through enabling the remote shell to your existing Ubuntu machine.
1. Install OpenSSH Server on Ubuntu:
- Open a terminal on your Ubuntu machine.
- Type sudo apt update and press Enter to update your package list
- Type sudo apt install openssh-server and press Enter to install the SSH server
The install command will retrieve the latest package, upon user confirmation the installation will complete.
2. Find your Ubuntu machine's IP address:
There are various commands can be used to retrieve an IP address of a device.- In the terminal window of Ubuntu machine type ifconfig or ip add show
The command will give you IP address of the device
3. Connecting from the development machine:
On macOS or Linux:
- Open a terminal.
- Type ssh your_username@your_ubuntu_ip_address and press Enter. (Replace your_username with your Ubuntu username and your_ubuntu_ip_address with the IP address you found in step 2).
- You'll be prompted to enter your Ubuntu password.
On Windows machine:
- Download and install an SSH client like PuTTY
- Open PuTTY
- Open PuTTY
- In the "Host Name" field, enter IP address of the Ubuntu machine
- Click "Open."
You'll be prompted to enter your Ubuntu password, after successful authentication you will be in.
No comments:
Post a Comment