Connecting to sftp using lftp get operation not permitted

Issues related to configuring your network
Post Reply
hasandjamil
Posts: 3
Joined: 2021/11/25 12:25:45

Connecting to sftp using lftp get operation not permitted

Post by hasandjamil » 2021/11/25 12:32:58

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.


User avatar
TrevorH
Forum Moderator
Posts: 31328
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Connecting to sftp using lftp get operation not permitted

Post by TrevorH » 2021/11/27 22:45:18

What is the output from uname -a ?
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

hasandjamil
Posts: 3
Joined: 2021/11/25 12:25:45

Re: Connecting to sftp using lftp get operation not permitted

Post by hasandjamil » 2021/11/28 07:16:38

aks wrote:
2021/11/27 20:18:32
Check selinux: https://wiki.centos.org/HowTos/SELinux
SELinux was disabled.

hasandjamil
Posts: 3
Joined: 2021/11/25 12:25:45

Re: Connecting to sftp using lftp get operation not permitted

Post by hasandjamil » 2021/11/29 03:35:16

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.

User avatar
TrevorH
Forum Moderator
Posts: 31328
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Connecting to sftp using lftp get operation not permitted

Post by TrevorH » 2021/11/29 10:49:58

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
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - Networking Support”