LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2015, 12:51 AM   #1
dsinha
LQ Newbie
 
Registered: Jun 2015
Posts: 2

Rep: Reputation: Disabled
Unhappy SSH related


in a perl script i m trying to run a command which invoke output from different server for that i have applied passwordless ssh. but in few machine it's not able to ssh and getting hung or prompting for password, it doesn't come out or go to next machine until i press enter. can anyone suggest something to overcome the issue.

Last edited by dsinha; 06-23-2015 at 12:55 AM.
 
Old 06-23-2015, 08:19 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by dsinha View Post
in a perl script i m trying to run a command which invoke output from different server for that i have applied passwordless ssh. but in few machine it's not able to ssh and getting hung or prompting for password, it doesn't come out or go to next machine until i press enter. can anyone suggest something to overcome the issue.
Since you provide us with NO DETAILS at all, no, we can't really suggest much. You don't tell us anything about the version/distro of Linux, what you've done, post any of your code, etc.

Short answer: you're obviously having ssh issues between those machines...resolve it first, and put error handling routines in your code to resolve the isue.
Longer answer: you say "perl script", but don't post any of it. Are you using a system call to invoke ssh, or are you using a CPAN SSH perl module? If you're using a module, there are MANY, and all of them have error handling capabilities. Since you don't post your code, we don't know what you're doing, so can't really suggest anything.
 
Old 06-23-2015, 08:52 AM   #3
dsinha
LQ Newbie
 
Registered: Jun 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Smile

thanks for the reply. i will try to work on error handling process.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh agent related query amitk.gupta09 Linux - Server 6 09-21-2011 05:30 AM
ssh and Miscl server related issues puk007 Linux - Server 9 12-02-2010 10:44 AM
Question related to SSH rajeshkerala Linux - Newbie 12 08-17-2009 10:47 PM
An SSH - related Question.... rajeshkerala Linux - Newbie 3 12-20-2008 11:42 PM
Just a quick SSH related question... Geneset Linux - Networking 4 02-04-2008 11:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration