network
Network
Find my IP address
$ ifconfig $ hostname -I $ ip addr
Test network connections
$ ping localhost
Connect to wifi ports
$ nmcli dev wifi list # network manager command line interface (nmcli) $ nmcli dev wifi connect JASMINE $ nmcli dev wifi connect TELLO-591FFC $ nmcli connection $ sudo nmcli connection modify TELLO-591FFC connection.autoconnect yes
Login to remote machines
ssh - Replaces rlogin and rsh.
$ ssh -p 7822 voyccom@az1-ss8.a2hosting.com
Copy files between remote machines
SFTP - A protocol to do file transfer over SSH, emulating FTP syntax.
SCP - A protocol to do file transfer over SSH, emulating the syntax of rcp in BSD Unix.
$ scp from.txt to.txt $ scp username@host:path/* . $ scp . username@host:path/ $ scp -pr -P 22 jhagstrand@web612.webfaction.com:db_archive . $ scp -pr -P 7822 voyccom@az1-ss8.a2hosting.com:webprod/mai/config.ini .
SCP options
-P remote-port
-p preserve files modification and access times
-r copy directories recursively
network.txt · Last modified: 2022/09/26 12:35 by jhagstrand