lftp without pseudo-terminal (/dev/ptmx) devices

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm try to implement script that can be used to file transfer between two serves here I'm using lftp in terminal error I get




code and error 1




lftp -u user,password sftp://xxx.xxxxx.xxxx
lftp user@XXXX.XXXX.XXX:~> ls
ls: Fatal error: pseudo-tty allocation failed: No such file or directory



code and error 2




lftp -u user,password xxx.xxxxx.xxxx
lftp user@xxx.xxxx.xxxx:~> ls
WARNING: failed to configure server name indication (SNI) TLS extension
ls: Login failed: 500 PASS: USER must be sent first



code error 3




ssh -t USER@XXX.X.XXX.XX "cd /Home/path/dir/"
user@xx.xx.xxx.xxx's password:
PTY allocation request failed on channel 0



USING CURL




 curl -u USER:PASS 'ftp://XX.XXX.XXXX/path/To_dir/' -o /tmp/test.file 
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (67) Access denied: 500


I'm using site ground host provider and it has limited my options here



I Only has ftp access no ssh access so I can't use scp or rsyunc . host provider does not provide me install and advance system modification on this server



I use this user and password with filezila and it connect without issue so user name and password 100% working



same time I use this script with my local Centos and Ubuntu vms and script work fine so script commands 100% ok too




full script I try to use




lftp -u user,password sftp://xxx.xxxxx.xxxx << --EOF--
cd /path/on/remote/server/dir
mput *
quit
--EOF--


after try all the internet solution and fail with host system ,host support guys suggest me to use lftp without pseudo-terminal (/dev/ptmx) devices



can you guys provide me some insights on this . how to implement lftp with out pseudo-terminal










share|improve this question





















  • which protocol are you using ? there is sftp (with a leading 's') (first example) and ftp (curl example)
    – Archemar
    Oct 3 '17 at 14:02










  • lets say I want to use only ftp . here I have show you what I test and results. most of time I like to stick with lftp
    – Dan Rox
    Oct 3 '17 at 14:14















up vote
0
down vote

favorite












I'm try to implement script that can be used to file transfer between two serves here I'm using lftp in terminal error I get




code and error 1




lftp -u user,password sftp://xxx.xxxxx.xxxx
lftp user@XXXX.XXXX.XXX:~> ls
ls: Fatal error: pseudo-tty allocation failed: No such file or directory



code and error 2




lftp -u user,password xxx.xxxxx.xxxx
lftp user@xxx.xxxx.xxxx:~> ls
WARNING: failed to configure server name indication (SNI) TLS extension
ls: Login failed: 500 PASS: USER must be sent first



code error 3




ssh -t USER@XXX.X.XXX.XX "cd /Home/path/dir/"
user@xx.xx.xxx.xxx's password:
PTY allocation request failed on channel 0



USING CURL




 curl -u USER:PASS 'ftp://XX.XXX.XXXX/path/To_dir/' -o /tmp/test.file 
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (67) Access denied: 500


I'm using site ground host provider and it has limited my options here



I Only has ftp access no ssh access so I can't use scp or rsyunc . host provider does not provide me install and advance system modification on this server



I use this user and password with filezila and it connect without issue so user name and password 100% working



same time I use this script with my local Centos and Ubuntu vms and script work fine so script commands 100% ok too




full script I try to use




lftp -u user,password sftp://xxx.xxxxx.xxxx << --EOF--
cd /path/on/remote/server/dir
mput *
quit
--EOF--


after try all the internet solution and fail with host system ,host support guys suggest me to use lftp without pseudo-terminal (/dev/ptmx) devices



can you guys provide me some insights on this . how to implement lftp with out pseudo-terminal










share|improve this question





















  • which protocol are you using ? there is sftp (with a leading 's') (first example) and ftp (curl example)
    – Archemar
    Oct 3 '17 at 14:02










  • lets say I want to use only ftp . here I have show you what I test and results. most of time I like to stick with lftp
    – Dan Rox
    Oct 3 '17 at 14:14













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm try to implement script that can be used to file transfer between two serves here I'm using lftp in terminal error I get




code and error 1




lftp -u user,password sftp://xxx.xxxxx.xxxx
lftp user@XXXX.XXXX.XXX:~> ls
ls: Fatal error: pseudo-tty allocation failed: No such file or directory



code and error 2




lftp -u user,password xxx.xxxxx.xxxx
lftp user@xxx.xxxx.xxxx:~> ls
WARNING: failed to configure server name indication (SNI) TLS extension
ls: Login failed: 500 PASS: USER must be sent first



code error 3




ssh -t USER@XXX.X.XXX.XX "cd /Home/path/dir/"
user@xx.xx.xxx.xxx's password:
PTY allocation request failed on channel 0



USING CURL




 curl -u USER:PASS 'ftp://XX.XXX.XXXX/path/To_dir/' -o /tmp/test.file 
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (67) Access denied: 500


I'm using site ground host provider and it has limited my options here



I Only has ftp access no ssh access so I can't use scp or rsyunc . host provider does not provide me install and advance system modification on this server



I use this user and password with filezila and it connect without issue so user name and password 100% working



same time I use this script with my local Centos and Ubuntu vms and script work fine so script commands 100% ok too




full script I try to use




lftp -u user,password sftp://xxx.xxxxx.xxxx << --EOF--
cd /path/on/remote/server/dir
mput *
quit
--EOF--


after try all the internet solution and fail with host system ,host support guys suggest me to use lftp without pseudo-terminal (/dev/ptmx) devices



can you guys provide me some insights on this . how to implement lftp with out pseudo-terminal










share|improve this question













I'm try to implement script that can be used to file transfer between two serves here I'm using lftp in terminal error I get




code and error 1




lftp -u user,password sftp://xxx.xxxxx.xxxx
lftp user@XXXX.XXXX.XXX:~> ls
ls: Fatal error: pseudo-tty allocation failed: No such file or directory



code and error 2




lftp -u user,password xxx.xxxxx.xxxx
lftp user@xxx.xxxx.xxxx:~> ls
WARNING: failed to configure server name indication (SNI) TLS extension
ls: Login failed: 500 PASS: USER must be sent first



code error 3




ssh -t USER@XXX.X.XXX.XX "cd /Home/path/dir/"
user@xx.xx.xxx.xxx's password:
PTY allocation request failed on channel 0



USING CURL




 curl -u USER:PASS 'ftp://XX.XXX.XXXX/path/To_dir/' -o /tmp/test.file 
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (67) Access denied: 500


I'm using site ground host provider and it has limited my options here



I Only has ftp access no ssh access so I can't use scp or rsyunc . host provider does not provide me install and advance system modification on this server



I use this user and password with filezila and it connect without issue so user name and password 100% working



same time I use this script with my local Centos and Ubuntu vms and script work fine so script commands 100% ok too




full script I try to use




lftp -u user,password sftp://xxx.xxxxx.xxxx << --EOF--
cd /path/on/remote/server/dir
mput *
quit
--EOF--


after try all the internet solution and fail with host system ,host support guys suggest me to use lftp without pseudo-terminal (/dev/ptmx) devices



can you guys provide me some insights on this . how to implement lftp with out pseudo-terminal







shell-script ftp file-transfer lftp






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 3 '17 at 13:54









Dan Rox

2015




2015











  • which protocol are you using ? there is sftp (with a leading 's') (first example) and ftp (curl example)
    – Archemar
    Oct 3 '17 at 14:02










  • lets say I want to use only ftp . here I have show you what I test and results. most of time I like to stick with lftp
    – Dan Rox
    Oct 3 '17 at 14:14

















  • which protocol are you using ? there is sftp (with a leading 's') (first example) and ftp (curl example)
    – Archemar
    Oct 3 '17 at 14:02










  • lets say I want to use only ftp . here I have show you what I test and results. most of time I like to stick with lftp
    – Dan Rox
    Oct 3 '17 at 14:14
















which protocol are you using ? there is sftp (with a leading 's') (first example) and ftp (curl example)
– Archemar
Oct 3 '17 at 14:02




which protocol are you using ? there is sftp (with a leading 's') (first example) and ftp (curl example)
– Archemar
Oct 3 '17 at 14:02












lets say I want to use only ftp . here I have show you what I test and results. most of time I like to stick with lftp
– Dan Rox
Oct 3 '17 at 14:14





lets say I want to use only ftp . here I have show you what I test and results. most of time I like to stick with lftp
– Dan Rox
Oct 3 '17 at 14:14
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f395850%2flftp-without-pseudo-terminal-dev-ptmx-devices%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f395850%2flftp-without-pseudo-terminal-dev-ptmx-devices%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay