![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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. |
|
||||
|
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.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|