Sponsored Content
Full Discussion: noninteractive SFTP
Top Forums Shell Programming and Scripting noninteractive SFTP Post 302445820 by rajamadhavan on Tuesday 17th of August 2010 02:36:24 AM
Old 08-17-2010
I think one is to use a public key authentication. This will provide password-less authentication as long as you client's public key is made the authorized on the server.

However I am not sure if you have control over the SFTP server.

Another option is to use "expect" script.

-Raja
 

10 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Sftp

Hi All, Greetings! when a script file is passed to the SFTP command at the unix prompt, Is it possible to supress the keyboard input for user authentication. If yes, please let me know the way to do it. Thanks for any/all help at the earliest. Regards, Dheeraj. (1 Reply)
Discussion started by: dheeruchakri
1 Replies

2. UNIX for Dummies Questions & Answers

sftp

Hi, I am trying to setup a sftp connection to the local host for testing purposes. The machine is on a extranet behind a firewall which makes it difficult to test to other machines on the network as I do not manage to Firewall. I am just testing the concept for now to determine what needs to be... (2 Replies)
Discussion started by: hugow
2 Replies

3. OS X (Apple)

sftp

can anyone suggest somewhere i might learn how to set up sftp and ssh on os x tiger? I dont find any literature on it other then suggestions of thirdparty programs to do this for you.:confused: (3 Replies)
Discussion started by: RahJiggah
3 Replies

4. AIX

SFTP Failed---Request for subsystem 'sftp' failed on channel 0

Hi, While I am trying SFTP my machine to another unix machine , it was working fine till 10 min back. But now i am getting the below error "Request for subsystem 'sftp' failed on channel 0" Could you please someone help me to solve or analyise the root cause... Cheers:b:, Mahiban (0 Replies)
Discussion started by: mahiban
0 Replies

5. Ubuntu

I want to upload file on remote machine in noninteractive mode through SFTP

Hi All, I want to upload file through SFTP in non interactive mode on remote server. please tell me what will have to do in oreder to do SFTP . (1 Reply)
Discussion started by: kulbhushan
1 Replies

6. Shell Programming and Scripting

SFTP-how to log individual sftp command error while executing shell script

Hi, I have situation where i need to automate transferring 10000+ files using sftp. while read line do if ; then echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt fi done< files.txt sftp -b sftpCommand.txt stu@192.168.2.1 The above... (1 Reply)
Discussion started by: noobrobot
1 Replies

7. Shell Programming and Scripting

sftp

Hi, Can you please tell me what the below command does cat <<EOF1 > $tmp1 binary lcd $targetDir cd ${remoteDir} ls quit EOF1 cat $tmp1 set -x sftp6 -P 2246 -B $tmp1 --password=file://<ctl>/.gspass | tee outputfile Actually my requirement is if the sftp succeed, then only it... (3 Replies)
Discussion started by: help_scr_seeker
3 Replies

8. Red Hat

Chroot sftp users, remote sftp login shows wrong timestamp on files

Hello, I have a weird issue, I have RHEL 5.7 running with openssh5.2 where sftpgroup OS group is chroot. I see the difference difference in timestamp on files, when I login via ssh and SFTP, I see four hour difference, is something missing in my configuration. #pwd... (8 Replies)
Discussion started by: bobby320
8 Replies

9. Shell Programming and Scripting

Sftp : not able to print the echo statements after the sftp transfer

I had the below sftp script working perfectly but the problem is I am not able to send the echo statements . #!/bin/sh echo "Starting to sftp..." sftp admin@myip << END_SCRIPT cd /remotepath/ lcd /localpath/ mget myfiles*.csv bye END_SCRIPT echo "Sftp successfully." echo echo... (11 Replies)
Discussion started by: scriptscript
11 Replies

10. Shell Programming and Scripting

Needed SFTP script from windows to UNIX server and from UNIX to windows server(reverse SFTP)

hi guys, i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not and again i have to reverse sftp the files from unix to windows server..... regards, Vasa Saikumar. (13 Replies)
Discussion started by: hemanthsaikumar
13 Replies
MEMCACHED(3)								 1							      MEMCACHED(3)

The Memcached class

INTRODUCTION
Represents a connection to a set of memcached servers. CLASS SYNOPSIS
Memcached Memcached o public Memcached::__construct ([string $persistent_id]) o public bool Memcached::add (string $key, mixed $value, [int $expiration]) o public bool Memcached::addByKey (string $server_key, string $key, mixed $value, [int $expiration]) o public bool Memcached::addServer (string $host, int $port, [int $weight]) o public bool Memcached::addServers (array $servers) o public bool Memcached::append (string $key, string $value) o public bool Memcached::appendByKey (string $server_key, string $key, string $value) o public bool Memcached::cas (float $cas_token, string $key, mixed $value, [int $expiration]) o public bool Memcached::casByKey (float $cas_token, string $server_key, string $key, mixed $value, [int $expiration]) o public int Memcached::decrement (string $key, [int $offset = 1], [int $initial_value], [int $expiry]) o public int Memcached::decrementByKey (string $server_key, string $key, [int $offset = 1], [int $initial_value], [int $expiry]) o public bool Memcached::delete (string $key, [int $time]) o public bool Memcached::deleteByKey (string $server_key, string $key, [int $time]) o public bool Memcached::deleteMulti (array $keys, [int $time]) o public bool Memcached::deleteMultiByKey (string $server_key, array $keys, [int $time]) o public array Memcached::fetch (void ) o public array Memcached::fetchAll (void ) o public bool Memcached::flush ([int $delay]) o public mixed Memcached::get (string $key, [callable $cache_cb], [float &$cas_token]) o public array Memcached::getAllKeys (void ) o public mixed Memcached::getByKey (string $server_key, string $key, [callable $cache_cb], [float &$cas_token]) o public bool Memcached::getDelayed (array $keys, [bool $with_cas], [callable $value_cb]) o public bool Memcached::getDelayedByKey (string $server_key, array $keys, [bool $with_cas], [callable $value_cb]) o public mixed Memcached::getMulti (array $keys, [array &$cas_tokens], [int $flags]) o public array Memcached::getMultiByKey (string $server_key, array $keys, [string &$cas_tokens], [int $flags]) o public mixed Memcached::getOption (int $option) o public int Memcached::getResultCode (void ) o public string Memcached::getResultMessage (void ) o public array Memcached::getServerByKey (string $server_key) o public array Memcached::getServerList (void ) o public array Memcached::getStats (void ) o public array Memcached::getVersion (void ) o public int Memcached::increment (string $key, [int $offset = 1], [int $initial_value], [int $expiry]) o public int Memcached::incrementByKey (string $server_key, string $key, [int $offset = 1], [int $initial_value], [int $expiry]) o public bool Memcached::isPersistent (void ) o public bool Memcached::isPristine (void ) o public bool Memcached::prepend (string $key, string $value) o public bool Memcached::prependByKey (string $server_key, string $key, string $value) o public bool Memcached::quit (void ) o public bool Memcached::replace (string $key, mixed $value, [int $expiration]) o public bool Memcached::replaceByKey (string $server_key, string $key, mixed $value, [int $expiration]) o public bool Memcached::resetServerList (void ) o public bool Memcached::set (string $key, mixed $value, [int $expiration]) o public bool Memcached::setByKey (string $server_key, string $key, mixed $value, [int $expiration]) o public bool Memcached::setMulti (array $items, [int $expiration]) o public bool Memcached::setMultiByKey (string $server_key, array $items, [int $expiration]) o public bool Memcached::setOption (int $option, mixed $value) o public bool Memcached::setOptions (array $options) o public void Memcached::setSaslAuthData (string $username, string $password) o public bool Memcached::touch (string $key, int $expiration) o public bool Memcached::touchByKey (string $server_key, string $key, int $expiration) PHP Documentation Group MEMCACHED(3)
All times are GMT -4. The time now is 04:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy