- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Using scp in a script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 07:48 AM
08-21-2003 07:48 AM
Using scp in a script
scp -v -q FILE USER@DESTINATION:/DIRECTORY
the script seems to hang.
I decided to write output of script to a file, and the only significant thing I see is that I see a "Host key verification failed", which makes me inclined to believe that I may have corrupt keys.
Any suggestions?
Thanx in advance.
Mike-
- Tags:
- scp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 07:58 AM
08-21-2003 07:58 AM
Re: Using scp in a script
have you compiles scp yourself? if so did you turn on --with-scp-stats?
Please advise
Donny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 08:02 AM
08-21-2003 08:02 AM
Re: Using scp in a script
All of this was already in place when I was asked to review the issue as it is a job being launched by Tivoli Workload Scheduler.
Mike-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 08:02 AM
08-21-2003 08:02 AM
Re: Using scp in a script
The key files are stored in your home directory in the .ssh directory. There is one for ssh v2 and one for ssh v1 keys. These are just plain text files, so you can edit them and remove the offending host. Then reconnect with ssh to cache the key again and then scp should work.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 08:36 AM
08-21-2003 08:36 AM
Re: Using scp in a script
I haven't a script at hand, but something like a
ssh-add
o the sourcing of the proper file will work.
I remember sourcing the agent.dat, but i don't remembr well.
Second, try manually the connection using
ssh -v user@host
it that works, then your keys are OK.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 09:16 AM
08-21-2003 09:16 AM
Re: Using scp in a script
regenerate your keys for the client first then upload the new key. check your keys with a ssh connection.
let us know how its going,
Donny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 09:59 AM
08-21-2003 09:59 AM
Re: Using scp in a script
Right now, the scp completes without incident when I execute it from the command line. The issue occurs when I attempt to run this script from within TWS.
I am still investigating and will keep you updated on my progress.
Mike-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 11:11 AM
08-21-2003 11:11 AM
Re: Using scp in a script
I assume you are using ssh-agent so you your local keys are cached after being decrypted once. Otherwise you would need to enter your key passphrase everytime ssh/scp was run.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2003 12:48 AM
08-22-2003 12:48 AM
Re: Using scp in a script
I checked: we use sh-agent, and every script loads:
~/var/opt/ssh/ssh-agent.dat
that contains the proper SSH variables to use the autentication.
Massimo