by seanmceligot · 3y ago · 0 comments
You can accomplish the with a new scp session on the client server, but it's an extra step. I use this as a helper when for building the scp command.
function scppath() { echo $USER@$(hostname).$(dnsdomainname):$(realpath $1) ]