Chris Moore-3 wrote: > > Richard Stallman <[EMAIL PROTECTED]> writes: > >> Why does the situation with caching vary between ssh and scp? >> Why can't the scp method do whatever the ssh method does >> for passwords? > > I imagine because an ssh connection is persistant - once connected via > ssh, multiple commands can be sent on a single connection, whereas scp > makes a new connection for each copy. > >> What about if you use ssh-agent? Does that solve the problem? > > ssh-agent solves the problem. > > So does using these 2 lines: > ControlMaster auto > ControlPath /tmp/[EMAIL PROTECTED]:%p > in ~/.ssh/config, and having an existing ssh connection to the remote > host. Then 'scp' will reuse the existing ssh connection and not > need the user to specify a password. > >
One difficulty on W32: Cygwin's openSSH does not support the ControlMaster feature and PuTTY has no equivalent feature. I've got OS password-only access to my commonly used hosts (no public key because its a shared account). Without the connection sharing I stick to SSH-based file transfer and skip the faster SCP to avoid having to retype the password 30-40 tmes a day. -- View this message in context: http://www.nabble.com/TRAMP-password-caching-tf2726239.html#a7642745 Sent from the Emacs - Pretest - Bug mailing list archive at Nabble.com. _______________________________________________ emacs-pretest-bug mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
