- Check the IP address
sudo ifconfig
- Connect
ssh -p <port> <username>@<ip_address>
Host <shortcut to name>
HostName <either IP adress or HostName>
User <user>
Port <port>
# sudo apt install sshfs
sudo pacman -S sshfs
sudo sshfs -o allow_other <user>@<hostname>:<path remote> <local mount>
sudo umount <local mount> # to unmount
# the ssh config can also short the need of typing user and hostname!
sudo apt-get update
sudo apt install openssh-server
systemctl status ssh # evaluate the status of the sshd
systemctl enable ssh --now # enable the daemon service
systemctl start ssh --now # starts it
ss -ntlp | grep -i ssh
sudo apt install ufw
sudo ufw allow ssh
sudo ufw status
- Machine -> Settings -> Network Settings -> Bridged Adapter
# find out connection name
nmcli con show
# with connection name=Wired connection 1 check ipv4 method is 'auto'
nmcli con show "Wired connection 1" | grep "ipv4.method"
# restart network
nmcli networking off
nmcli networking on
# should show the new configuration changes where enp0s8 takes up the Wifi router's IP Address
# look at inet
ip a
Example sshconfig for it:
Host vbox
HostName 192.168.10.133
User foo