ssh password from textfile
Hi,
has the original question been actually answered? Is there a way to use ssh (or mor urgent scp) with having the password in a file? I need to copy quite a lot of file to/from my work space, and for each scp I have to type my password. This is very annoying! And yes, I have tried to setup the standard password-less ssh with keys, but for some unknown reasons this functionality is disabled. So the ONLY thing I can do is to stupidly type the same password dozen of times a day, except there is a way to do it with a password in a file... Any help welcome. Cheers Alex // Pruned from a vintage 2008 thread, please don't resurrect stale threads, TIA. |
Quote:
Code:
#!/usr/bin/expect -f |
Quote:
Quote:
|
Hi,
first a reply to the most recent email: Quote:
Nevertheless, with the example given in the post before that I googled I found a script which I have modified as follows: Quote:
./scp_to_host "data_*" /home/user spawn scp data_* user@host:/home/user user@host's password: 'data_*': No such file or directory Killed by signal 1. Any ideas how to modify the script so that wildcards are accepted as well? Cheers Alex |
Tcl does not do filename expansion using the shell wildcard, but by means of the glob function. Once you've retrieved the list of files, you can use a for loop to copy each of them at a time:
Code:
#!/usr/bin/expect -f |
Have you asked the admins about being allowed to use public key login?
Another good suggestion from unSpawn is ssh-agent. |
All times are GMT -5. The time now is 12:49 AM. |