How to use sshpass to sftp upload file?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
ftp sftp scp upload sshpass
add a comment |Â
up vote
1
down vote
favorite
ftp sftp scp upload sshpass
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
ftp sftp scp upload sshpass
ftp sftp scp upload sshpass
asked May 9 at 5:16
YumYumYum
4,3423286133
4,3423286133
add a comment |Â
1
1
take a look at sexpect which you can use to write Expect like scripts with shell only.
â pynexj
May 9 at 15:06
take a look at sexpect which you can use to write Expect like scripts with shell only.
â pynexj
May 9 at 15:06
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1033858%2fhow-to-use-sshpass-to-sftp-upload-file%23new-answer', 'question_page');
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
up vote
1
down vote
favorite
I have following :
$ cat upload.sh
sshpass -f ~/path_to_password/pass.txt sftp user@remote.location.net:/pools/path/ << EOF
put backup.tar
EOF
When i execute the upload.sh
it shows nothing (file is not uploaded) and does not exit auto. How to properly exit and make sure the upload is made?
ftp sftp scp upload sshpass
add a comment |Â
up vote
1
down vote
favorite
I have following :
$ cat upload.sh
sshpass -f ~/path_to_password/pass.txt sftp user@remote.location.net:/pools/path/ << EOF
put backup.tar
EOF
When i execute the upload.sh
it shows nothing (file is not uploaded) and does not exit auto. How to properly exit and make sure the upload is made?
ftp sftp scp upload sshpass
1
take a look at sexpect which you can use to write Expect like scripts with shell only.
â pynexj
May 9 at 15:06
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have following :
$ cat upload.sh
sshpass -f ~/path_to_password/pass.txt sftp user@remote.location.net:/pools/path/ << EOF
put backup.tar
EOF
When i execute the upload.sh
it shows nothing (file is not uploaded) and does not exit auto. How to properly exit and make sure the upload is made?
ftp sftp scp upload sshpass
I have following :
$ cat upload.sh
sshpass -f ~/path_to_password/pass.txt sftp user@remote.location.net:/pools/path/ << EOF
put backup.tar
EOF
When i execute the upload.sh
it shows nothing (file is not uploaded) and does not exit auto. How to properly exit and make sure the upload is made?
ftp sftp scp upload sshpass
asked May 9 at 5:16
YumYumYum
4,3423286133
4,3423286133
1
take a look at sexpect which you can use to write Expect like scripts with shell only.
â pynexj
May 9 at 15:06
add a comment |Â
1
take a look at sexpect which you can use to write Expect like scripts with shell only.
â pynexj
May 9 at 15:06
1
1
take a look at sexpect which you can use to write Expect like scripts with shell only.
â pynexj
May 9 at 15:06
take a look at sexpect which you can use to write Expect like scripts with shell only.
â pynexj
May 9 at 15:06
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Â
draft saved
draft discarded
Â
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1033858%2fhow-to-use-sshpass-to-sftp-upload-file%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
take a look at sexpect which you can use to write Expect like scripts with shell only.
â pynexj
May 9 at 15:06