hetzner_box
username xxx
上传ssh公钥(23端口)
1
cat .ssh/id_rsa.pub >> storagebox_authorized_keys (公钥汇总)
2
3
echo -e "mkdir .ssh \\n chmod 700 .ssh \\n put storagebox_authorized_keys .ssh/authorized_keys \\n chmod 600 .ssh/authorized_keys" | sftp -P 23 [email protected]
Copied!
挂载命令
1
sftp -oPort=23 [email protected]
Copied!
传输
1
rsync -e 'ssh -p 23' -avP access.log [email protected]:/home
2
3
rsync -e 'ssh -p 23' -avP [email protected]:/home/xxx.7z ./
Copied!
1
scp -P 23 access.log [email protected]:/home
Copied!
最近更新 10mo ago
复制链接