- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- non-interactive transfer of a file using SFTP
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
Discussions
Discussions
Discussions
Forums
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
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
тАО10-26-2006 04:52 PM
тАО10-26-2006 04:52 PM
Please help me in transfering a file using SFTP non-interactively. I am already using expect script for that but its not working when i keep it in crontab file. (refere my previous thread)
I also tried keeping the keys in destination machine, but coudln't get the ultimate result.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2006 05:18 PM
тАО10-26-2006 05:18 PM
Re: non-interactive transfer of a file using SFTP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2006 05:59 PM
тАО10-26-2006 05:59 PM
Re: non-interactive transfer of a file using SFTP
Thanks for your reply Kapil Raj.
Actually i have tried it already, but then also its giving the error, "No principal in keytab matches desired name", and it is again asking for the password.
If you could brief me the exact procedure to authenticate using this ssh-keygen, it'll be very helpfull for me. (coz i think i'm goin wrong somewhere here only..)
Thanks a lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2006 03:36 AM
тАО10-27-2006 03:36 AM
Solutionthe exact procedure is found in ther man pages of ssh and ssh-keygen.
Short:
For user_from@host_from:
1) ssh-keygen -t rsa
2) cd ~/.ssh
For 3+4 you need the password:
3) scp id_rsa.pub user_to@host_to:ssh/key-user_from
4) ssh user_to@host_to
Now you are user_to at host_to.
Create keys as well, if not already existing here, because in short or long terms you will need them :-) .
5) ssh-keygen -t rsa
5) cd .ssh
6) cat key-user_from >>authorized_keys
7) chmod 600 authorized_keys
8) exit
Now you are user_from at host_from again.
This should work without the request of a password:
9) ssh user_to@host_to date
There may be many things, which cause the failure of this setup. For details read the man pages, for tracing use
ssh -vvv user_to@host_to date
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2006 05:46 PM
тАО10-27-2006 05:46 PM
Re: non-interactive transfer of a file using SFTP
did you make progress in your efforts? It is good practise in this forum to post results of the suggestions.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2006 04:07 PM
тАО10-29-2006 04:07 PM
Re: non-interactive transfer of a file using SFTP
sorry peter, these two days were weekends, so coudln't reply..
and i tried using that procedure, but still its asking for password.. but somehow one of my colleague did it.. and its working only for his login, he also is unable to set it up to other login.. i donno whats goin wrong but anyways, i got to know about many things by this discussions..
thanks to one and all, involved in this discussion..
Kind regards,
Gangadhar