| | |
how to enter for the prompt?
Thread Solved |
•
•
Join Date: Nov 2007
Posts: 227
Reputation:
Solved Threads: 0
hi,
basically i am trying to write a quick script to remote copy something as follow.
"" scp user@192.168.1.5:/var/tmp/file.txt /var/tmp/newfile.txt ""
if i do above cmd on the shell, i will be asked for password:
my question is, how i do automate the password part within the shell script to make it just copy without prompting for the password.
thanks
basically i am trying to write a quick script to remote copy something as follow.
"" scp user@192.168.1.5:/var/tmp/file.txt /var/tmp/newfile.txt ""
if i do above cmd on the shell, i will be asked for password:
my question is, how i do automate the password part within the shell script to make it just copy without prompting for the password.
thanks
0
#2 23 Days Ago
Configure the ssh to use private keys.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
0
#3 23 Days Ago
Here are a few articles on keying ssh:
http://www.linuxjournal.com/article/8600
http://www.hostingrails.com/wiki/27/...out-a-password
http://www.linuxjournal.com/article/8600
http://www.hostingrails.com/wiki/27/...out-a-password
![]() |
Similar Threads
- XP not booting - lsass.exe not found (Windows NT / 2000 / XP)
- System .dat Error (Windows 95 / 98 / Me)
- XP won't load, computer keeps resetting (Windows NT / 2000 / XP)
- format specifiers (Java)
- How do uninstall Mepis Linux and reinstall Windows 98 SE? (Troubleshooting Dead Machines)
- windows 98 not showing desktop items and start menu (Windows 95 / 98 / Me)
- I have a problem with python....help (Python)
- Error Message Windows ME (Windows 95 / 98 / Me)
- Help! Unable to ping machine on the network (Windows NT / 2000 / XP)
- Tutorials for Linux (*nix Software)
Other Threads in the Shell Scripting Forum
- Previous Thread: connect to oracle retrieve data and work around the data through shell script
- Next Thread: how to move files and check the completion.
| Thread Tools | Search this Thread |






