Re:Deprecating scp
by stinos on Friday November 06, 2020 @12:02PM
(#25009111)
Use "-e" to set ssh options, just like with scp
On my rsync -e sets the executable, and my scp doesn't have -e but -o. Even then it's a bit of a stretch (or I'm missing something); e.g. for the ssh option I use mst of the time, a non-default port:
scp -P 4222
is equivalent to
scp -o"Port=4222"
is equivalent to
rsync -e "ssh -p 4222"
Again, this is just what I use after having to look it up at one point so I might be missing something, but it's not like the arguments translate one to one?
On my rsync -e sets the executable, and my scp doesn't have -e but -o. Even then it's a bit of a stretch (or I'm missing something); e.g. for the ssh option I use mst of the time, a non-default port:
is equivalent to is equivalent to Again, this is just what I use after having to look it up at one point so I might be missing something, but it's not like the arguments translate one to one?