-
Notifications
You must be signed in to change notification settings - Fork 0
Installing SSH
Jorge Pérez edited this page Dec 4, 2024
·
4 revisions
Developing connected to VSCode as a SSH tunnel is really comfortable, so here's how to do it.
- Install ssh server
´sudo apt install openssh-server´
- Enable it so that it starts when the host is turned on
´sudo systemctl enable ssh´
- Start it
´sudo systemctl start ssh´
- Install net-tools to see your IP
´sudo apt install net-tools´
- Get your IP. From the enp1s0 network interface
´ifconfig´
- From your physical machine, do ssh yourVMUserName@yourIP
ssh jorge@192.168.124.179
- Make an ssh key
ssh-keygen -t ed25519
- Share that key to the VM
ssh-copy-id -i .ssh/id_ed25519 jorge@192.168.124.179