Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: