News for hackers. Stuff that matters.
Re:SSH Agent Explained by beagle3 on Wednesday May 20, 2020 @09:37AM (#23246636)
Use session sharing (ControlMaster setting). Then, don't quit your session - in another terminal on the same computer, run your scp command, and it will use the existing session (and its authentication), without need for -i.

Alternatively, ssh-add is your friend.

(But for security, make sure you do not forward ssh-agent unless you understand the risks)

There are no comments on this comment yet.