- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- PERL - SCP failure - lost connection
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
тАО03-02-2010 09:49 AM
тАО03-02-2010 09:49 AM
PERL - SCP failure - lost connection
I have transferred the keys and can run scp manually without passwds. So you would think it would work...
Here is the script:
my $scp = Net::SCP->new("gordo.mts.mb.ca", "kali");
$scp->put("$cwd/callInstall-RepairSurvey_${file_date}.psv") or &error("Error with SCP to gordo: \n$scp->{errstr}");
I just get a "lost connection" error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2010 10:02 AM
тАО03-02-2010 10:02 AM
Re: PERL - SCP failure - lost connection
You might try 'Net::SFTP::Foreign' instead. Perhaps you will find it more robust and certainly more up-to-date.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2010 01:42 PM
тАО03-02-2010 01:42 PM
Re: PERL - SCP failure - lost connection
in a shell script i use scp with the -B
scp -B user@host:/filename /localdir/localfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2010 02:09 PM
тАО03-02-2010 02:09 PM
Re: PERL - SCP failure - lost connection
Check the logs on the back end server. See if you are even getting a connection. Maybe openssh needs an update at that end.
SEP
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-02-2010 02:33 PM
тАО03-02-2010 02:33 PM
Re: PERL - SCP failure - lost connection
I needed to move it, so I created a new id, and have the script working up until the scp...
But, i have done the key exchange and can manually run scp
And works flawless, so this is why I am puzzled as to why it fails.