介绍用rsync命令通过ssh传输文件,从本地到远程。 Ubuntu本地机通过指定的ssh密钥连远程服务器:ssh -i (key position) -p *** root@remote注:(key position) 指本地存放ssh私钥的目录(公钥已提前传到服务器),比如我的密钥是在windows下生成后,将私钥cp到wsl2上的某个位置,此处key position即填该位置;-p **...
Enter file in which to save the key (/root/.ssh/id_rsa): //按回车,确认存放位 Enter passphrase (empty for no passphrase): //按回车,确认不要密码 Enter same passphrase again: //再次按回车,确认 Your identification has been saved in yes. Your public key has been saved in yes[root@svr...
介绍用rsync命令通过ssh传输文件,从本地到远程。 Ubuntu本地机通过指定的ssh密钥连远程服务器:ssh -i (key position) -p *** root@remote注:(key position) 指本地存放ssh私钥的目录(公钥已提前传到服务器),比如我的密钥是在windows下生成后,将私钥cp到wsl2上的某个位置,此处key position即填该位置;-p **...