Page 1 of 1

Connecting to sftp using lftp get operation not permitted

Posted: 2021/11/25 12:32:58
by hasandjamil
I can't list the home directory at remote server by using lftp. The error is below.

[user@clientserver ~]$ lftp

lftp :~> lftp -u user,password sftp://remoteserver

lftp user@remoteserver:~> ls

ls: Fatal error: pseudo-tty allocation failed: Operation not permitted



It is not only ls, but also the other commands as well.

While I'm using sftp user@remoteaddress, it's working properly and all the command like ls, cd, pwd, put, etc. is working.

Re: Connecting to sftp using lftp get operation not permitted

Posted: 2021/11/27 20:18:32
by aks

Re: Connecting to sftp using lftp get operation not permitted

Posted: 2021/11/27 22:45:18
by TrevorH
What is the output from uname -a ?

Re: Connecting to sftp using lftp get operation not permitted

Posted: 2021/11/28 07:16:38
by hasandjamil
aks wrote:
2021/11/27 20:18:32
Check selinux: https://wiki.centos.org/HowTos/SELinux
SELinux was disabled.

Re: Connecting to sftp using lftp get operation not permitted

Posted: 2021/11/29 03:35:16
by hasandjamil
TrevorH wrote:
2021/11/27 22:45:18
What is the output from uname -a ?
Linux xxxx-xxx-x 3.10.0-493.el7.x86_64 #1 SMP Tue Aug 16 11:45:26 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux

However, if I used sudo before lftp, it works! I think lftp doesn't need privileges, but somehow in my case, lftp asked privilege.

Re: Connecting to sftp using lftp get operation not permitted

Posted: 2021/11/29 10:49:58
by TrevorH
Linux xxxx-xxx-x 3.10.0-493.el7.x86_64 #1 SMP Tue Aug 16 11:45:26 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
5 years out of date... yum update