- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SSH in batch.
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
Forums
Discussions
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
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
03-16-2005 03:14 PM
03-16-2005 03:14 PM
SSH in batch.
Thanks,
hptech2.
- Tags:
- ssh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2005 03:19 PM
03-16-2005 03:19 PM
Re: SSH in batch.
job in the remote system itself to move the file. Any
reason why you can't do that?
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2005 03:56 PM
03-16-2005 03:56 PM
Re: SSH in batch.
This should be done as part of an app startup in the local system. Also dont want to put a script in the remote system and execute it remotely.
Thanks,
hptech2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2005 03:57 PM
03-16-2005 03:57 PM
Re: SSH in batch.
Say the system you want to ssh to is sysb and the one you are ssh'ing from is sysa.
Generate a public/private key pair on sysa via the ssy-keygen command. Copy the public key to sysb and put it in the .ssh/authorized_keys file in the users home directory. Be very careful of permissions. Restrict permission the the .ssh directory and its contents to 700 for the dir and 600 or 400 for the files in the dir.
Once your ssh is working from the command line using it in a script should be no problem.
Something like:
ssh sysb "mv /dir/file1 /driv/file2"
is all you need to do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2005 04:27 PM
03-16-2005 04:27 PM
Re: SSH in batch.
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2005 04:39 PM
03-16-2005 04:39 PM
Re: SSH in batch.
www.ssh.com/support/documentation/ online/ssh/adminguide/32/Host-Based_Authentication.html
www.csse.uwa.edu.au/~ryan/tech/ssh-no-password.html
All The best
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 11:38 AM
03-17-2005 11:38 AM
Re: SSH in batch.
-hptech2.