ssh
key:
ssh-keygen -t rsa -b 4096 -C "intbird@163.com" ~/.ssh/id_rsa
local:
cat /Users/intbird/.ssh/id_rsa_vps.pub >> ~/.ssh/authorized_keys
remote:
ssh-copy-id -i ~/.ssh/id_rsa_vps.pub root@pi.intbird.com
chmod 600 .ssh/authorized_keys
sshd:
sed -i 's/Port 27081/Port 22/g' /etc/ssh/sshd_config
PubkeyAuthentication/ PasswordAuthentication
ssh -i ~/.ssh/vps/id_rsa root@216.24.255.235 -p 22
chmod
- r=读取属性 //值=4
- w=写入属性 //值=2
- x=执行属性 //值=1
useradd
sudo usermod -aG docker ec2-user
查看用户
cut -d: -f1 /etc/passwd
添加用户
adduser intbird
passwd intbird
userdel -r intbird
切换用户
su intbird
Too much ....
https://intbird.atlassian.net/