@w27 但是scp可能将来会被废除,早迁移早好(
https://fedoramagazine.org/scp-users-migration-guide-to-rsync/
@hako @w27 我搜了下,居然真的就是这样……
$ ssh user@server1 "rsync /files user@server2:/directory"
https://serverfault.com/a/411558/
@fulkrum@qoto.org @w27@orz.uno 我指的是 scp alice:test bob: 這樣,可以不用讓遠程系統信任另一個遠程系統。
@w27@orz.uno @fulkrum@qoto.org hmmmmmmint throughlocal = 1;
看起來默認是 scp -3(本地中轉),不過感覺 rsync 不像是能簡單搞定這個的樣子
@hako @fulkrum https://github.com/openssh/openssh-portable/commit/bfdd4b722f124a4fa9173d20dd64dd0fc69856be 21年才改的默认-3,确实 much better and more intuitive……
@w27@orz.uno @hako@social.boiledscript.com @fulkrum@qoto.org ssh -J 还具有“用当前服务器做下一个服务器的跳板”的功能
@niconiconi @fulkrum @hako !天哪我一直都傻傻地用 -L 手动跳板
@fulkrum 这是 8.0 的新闻,说 scp protocol 有问题……但是 9.0 换成 SFTP protocol 了,scp 的命是不是又续上了(
https://www.openssh.com/txt/release-9.0
@fulkrum@qoto.org @w27@orz.uno 說起來 rsync 可以由本地控制在兩個遠程系統間傳輸嗎?(