HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Reg: Use of Net::SFTP to achieve Public key authen...
Operating System - Linux
1830940
Members
1880
Online
110017
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-18-2008 07:15 AM
03-18-2008 07:15 AM
Reg: Use of Net::SFTP to achieve Public key authentication in HP-UX 11i
Anybody is using Net::SFTP to transfer files using Key based authentication?
So far i could establish a password based authentication sftp connection using Net::SFTP.
Any help is really appreciated.
When I use Net::SFTP to do the same without using the password parameter, it is giving Permission denied at /opt/perl_32/lib/site_perl/5.8.8/Net/SFTP.pm line 62.
Regards,
Chinna
So far i could establish a password based authentication sftp connection using Net::SFTP.
Any help is really appreciated.
When I use Net::SFTP to do the same without using the password parameter, it is giving Permission denied at /opt/perl_32/lib/site_perl/5.8.8/Net/SFTP.pm line 62.
Regards,
Chinna
- Tags:
- Perl
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2008 07:25 AM
03-18-2008 07:25 AM
Re: Reg: Use of Net::SFTP to achieve Public key authentication in HP-UX 11i
Shalom,
1) Your error appears to be an problem with SHLIB_PATH or environment in your code. Not going to find much help debugging your code here.
2) Permissions and ownership of the home directory, the .ssh folder and the files inside are critical.
Example
[root@cleartux ~]# ll -d /root/
8 drwxr-xr-x 26 root root 4096 Mar 18 17:23 /root/
[root@cleartux ~]# ll -d .ssh
4 drwx------ 2 root root 4096 May 8 2006 .ssh
[root@cleartux ~]# ll .ssh/
total 36
4 drwx------ 2 root root 4096 May 8 2006 .
8 drwxr-xr-x 26 root root 4096 Mar 18 17:23 ..
4 -rw------- 1 root root 810 Aug 27 2007 authorized_keys
4 -rw-r--r-- 1 root root 1200 Feb 16 2006 authorized_keys2
4 -rw-r--r-- 1 root root 600 Dec 15 2005 authorized_keys.id_dsa.pub
4 -rw------- 1 root root 668 Dec 14 2005 id_dsa
4 -rw-r--r-- 1 root root 603 Dec 14 2005 id_dsa.pub
4 -rw-r--r-- 1 root root 3912 Dec 1 23:44 known_hosts
Those permissions/ownership work.
SEP
1) Your error appears to be an problem with SHLIB_PATH or environment in your code. Not going to find much help debugging your code here.
2) Permissions and ownership of the home directory, the .ssh folder and the files inside are critical.
Example
[root@cleartux ~]# ll -d /root/
8 drwxr-xr-x 26 root root 4096 Mar 18 17:23 /root/
[root@cleartux ~]# ll -d .ssh
4 drwx------ 2 root root 4096 May 8 2006 .ssh
[root@cleartux ~]# ll .ssh/
total 36
4 drwx------ 2 root root 4096 May 8 2006 .
8 drwxr-xr-x 26 root root 4096 Mar 18 17:23 ..
4 -rw------- 1 root root 810 Aug 27 2007 authorized_keys
4 -rw-r--r-- 1 root root 1200 Feb 16 2006 authorized_keys2
4 -rw-r--r-- 1 root root 600 Dec 15 2005 authorized_keys.id_dsa.pub
4 -rw------- 1 root root 668 Dec 14 2005 id_dsa
4 -rw-r--r-- 1 root root 603 Dec 14 2005 id_dsa.pub
4 -rw-r--r-- 1 root root 3912 Dec 1 23:44 known_hosts
Those permissions/ownership work.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP