The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Pardus: Samba Security Bypass iBot Security Advisories (RSS) 0 01-08-2009 02:10 PM
Debian: New mysql-dfsg-5.0 packages fix authorization bypass iBot Security Advisories (RSS) 0 07-14-2008 09:40 AM
TA08-162A: SNMPv3 Authentication Bypass Vulnerability iBot Security Advisories (RSS) 0 06-10-2008 11:10 AM
How to get the exit satus of a command which I executed in sftp prompt Karteek Shell Programming and Scripting 2 04-09-2008 08:00 AM
How to bypass error in shell script? tmikahan Shell Programming and Scripting 1 05-08-2007 06:15 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-21-2009
pierluigi22 pierluigi22 is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 2
How can I bypass the Prompt in SFTP

I am on a sun solaris server and trying to create a script that will test if SFTP is up and running on a remote server (which could be unix or windows).

My thought was to simply invoke sftp and if I get the prompt ofr "Password" then that is an indication that the service is running and I am done.

The problem is that the "prompt" for password takes over the and is wainting for a reply.

This script will run as a sceduled task (cron) to validate the service is up and will simply hang.

Is there a way to capture the fact that password is prompted for and then terminate the script.
  #2 (permalink)  
Old 04-21-2009
mshulman1980 mshulman1980 is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 4
What about using SSH keys between the systems?
  #3 (permalink)  
Old 04-21-2009
pierluigi22 pierluigi22 is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 2
I was looking a for a simple method that would not require full logon to the remote site. using a pub/private key pair would work but will require I obtain a logon and password to the remote servers - which we were looking to aviod since access to the servers would involves security approval - we just want to know if the service is up.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0