Remote
linux basic
cd ls / ls -ltrh mv rm / rm -r vi / vim cat tail htop pwd cp mkdir bash ssh ssh-keygen sftp rsync
test
- write a bash file, that can output a message 'hello linux' to a file and then copy the file to a server
- what is .bashrc or .zprofile
- how to make an alias
key less login
1 generate the key, ecdsa is the newer/preferred one
ssh-keygen -t ecdsa -b 521 # recommended
2 copy pub key to server
ssh-copy-id username@xx.xx.xx.xx
3 alias of remote server
vi ~/.ssh/config
Host epic291
HostName 192.168.56.4
User a3
IdentityFile ~/.ssh/id_ecdsa
XAuthLocation /opt/X11/bin/xauth
ForwardX11 Yes
ForwardX11Trusted yes