Questions tagged [sftp]

The SSH File Transfer Protocol (SFTP) provides secure file transfer functions using the same infrastructure used by the Secure Shell protocol. It can be seen as a secure replacement for FTP.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

How to configure separate ports and keys for restic usage?

I want to use restic for remote backups, but seeing as SFTP and SSH will both require access to the system, is there some way to configure the SSH access to the server in such a way that the ...
vfclists's user avatar
  • 7,485
0 votes
2 answers
35 views

Counting Files in Remote location using sftp in shell script

Getting Error with the below command to check on the Remote directory a specific type of files. The requirement is to get the count of the specific files. file_exists=$(sftp $FTP_UNAME@$FTP_HOST ls *$...
MALABIKA GARAI's user avatar
0 votes
1 answer
77 views

sFTP admin permission denied when placing files into user directory

I am running Ubuntu 22.04.3 with an sFTP server configured through SSHD. I have several user home directories each with a dropoff and a pickup folder inside of them. While my admin user is able to ...
Vince D's user avatar
0 votes
0 answers
49 views

`client_loop: send disconnect: Broken pipe` for accessing SFTP on a localhost instance

I inherited an unusual configuration for SFTP where a system uses a locally-running SFTP instance to load a directory on an NFS share, that is symlinked in /var/sftp as its default, but when ...
Cameron Kilgore's user avatar
2 votes
1 answer
440 views

What can I determine about my public key on host server?

The administrators at sftp.foobar.com have done the following: Acknowledged receipt of my public key. (id_rsa.pub) Given me a hostname of their server (sftp.foobar.com) Given me a userid for an ssh/...
zundarz's user avatar
  • 353
0 votes
0 answers
55 views

Delete FTP user name from Gnome file manager

My username has changed on a FTP server, but gnome files keeps asking for the password of the old username when connecting. Of course, this doesn't work. How do I delete the cached username, so I can ...
ice-wind's user avatar
  • 101
0 votes
1 answer
337 views

Passing ssh options to psftp command

I am using psftp to make connection between windows and linux to transfer files. psftp.exe user@host -pw hello -v -bc -batch However, in case of a new host above results in error: Cannot confirm a ...
Nullpointer's user avatar
0 votes
1 answer
61 views

SFTP prompts for username again after initial command

When I input for sftp like this, it normally gives me a password prompt because the username is in the command, but with this one machine it asks for the username again. sftp [email protected] ...
Kyle Sheehan's user avatar
0 votes
1 answer
356 views

Is there a way to grant an SFTP user the permission to write to folder without the ability to delete?

I am wondering if there is a way to give a user the ability to write to folder without ability to delete from it?
software-surgeon's user avatar
0 votes
1 answer
1k views

Transferring files between linux and windows using sftp

I am trying to sftp from my linux machine to a Windows host but I get connection refused. [root@linux-host ~]# sftp my.user@windows-host ssh: connect to host windows-host port 22: Connection refused. ...
Nullpointer's user avatar
0 votes
0 answers
19 views

How to share project directories into SFTP home directory of members

I've a requirement that when a user logs in, they should see the shared directories of the projects they are a part of, in the user's SFTP home. They should not see any other project directory. Users ...
Jonny Marotte's user avatar
-3 votes
2 answers
109 views

Trying to transfer files from my ubuntu server (running in oracle cloud) to my windows pc via pscp.exe

i did some mess and I'm trying to rescue some files from my ubuntu server to my local windows 7 client. Option WinSCP: Unfortunatelly WinSCP does not work anymore since I made the mess. (I run the ...
jjx's user avatar
  • 9
0 votes
0 answers
38 views

Cannot login into SSH from non-admin account. /bin/bash: No such file or directory [duplicate]

Although I have found many other posts on this exact problem, none of their presented solutions have fixed my issue. I have configured and SFTP and SSH server on my raspberry pi. And ever since I ...
Kuba0040's user avatar
0 votes
0 answers
182 views

Error while installing VSFTPD in passive mode - 500 OOPS: could not bind listening IPv4 socket

I am trying to install and connect to FTPS server (passive mode) locally. I have read similar topics in this community, but still can't fix the problem or find an error in the vsftpd.conf. Firewall is ...
ghostone's user avatar
-3 votes
1 answer
180 views

Use openssh for ssh connections and for public sftp

I have a system to which some users need to connect trough regular SSH. I will name them the “Privileged Users”. In the same time this system should provide an SFTP server to “Anonymous” user (without ...
fauve's user avatar
  • 1,170
0 votes
1 answer
1k views

Set default permissions for files received via SFTP

I'm receiving files pushed from another system via SFTP to a directory on a Linux VM. These files get the wrong permissions u=rw g= o=. However I need those files to have permissions like u=rw g=rw o=....
Niklas Letz's user avatar
0 votes
1 answer
241 views

Extract the last directory by sftp

I have a script that allows you to connect via sftp to a server and what I want is to go to a directory and bring the last directory created with all the subfolders and files, although the one I put ...
user1980835's user avatar
1 vote
1 answer
119 views

can we run ftp or sftp from single user account?

I have installed ftp and sftp on my linux mint system, for wordpress file transfer I had to create new user account for ftp and sftp on my system during the installation process. Is it possible to run ...
blueflyer's user avatar
0 votes
0 answers
45 views

Trying to connect to my SFTP linux machine

I've tried to connect to my Linux machine running SFTP, but when I try to connect via my Windows 10 machine with cmd it says: sftp_user@<IPAddress>'s password: debug1: Authentication succeeded (...
Khakis's user avatar
  • 1
0 votes
0 answers
442 views

SFTP nologin user public key auth will not work

Here is the user's configuraitons cat /etc/passwd | grep sftp sftpadmin:x:1001:1001::/backups:/sbin/nologin Created directory structure mkdir -p /backups/.ssh/ touch /backups/.ssh/authorized_keys ...
Dave's user avatar
  • 591
1 vote
2 answers
823 views

How to sudo to admin user after SFTP connection

I have a requirement to sudo to user 'admin' after connecting to SFTP server with below command. sftp user@hostname sftp> sudo su - admin Invalid command. Is there any other way I can use sudo?
user569136's user avatar
0 votes
1 answer
32 views

verifying network is or is not reaching my server through CentoS 7 Logs

I am pretty limited on actual server details and configurations I can share but will try my best to describe the issues and what I want to be able to do. the issue I am facing is as follows, I have ...
Balasarius's user avatar
0 votes
1 answer
365 views

Able to connect to CentOS 7 server through SSH from Ubuntu client but not SFTP

I'm sorry as I imagine different versions of this question have come up often but I can't seem to resolve my issue through others' posts. I am trying to learn about other OSes for work, and my work ...
Linux Idiot's user avatar
1 vote
1 answer
393 views

How to let user can only read files?

I have some new files to release every day. My coworker needs to sftp/scp to my Linux server to copy these files. I don't want him to do any file delete/move/execution...etc, the only thing he can do ...
Mark K's user avatar
  • 865
0 votes
1 answer
40 views

Add a remote location through a login machine

I have my Ubuntu laptop (call it A) and I want to add a computer (call it B) to the "Other locations" tab of nautilus. The problem is that I can not ssh directly from A to B, but through a ...
Sergio Alías's user avatar
1 vote
1 answer
417 views

Unable to connect to remote server after: sudo chown -R $USER:$USER /var/www

I tried gaining write permissions to change an HTML file on a remote server that runs Fedora using: sudo chown -R $USER:$USER /var/www After entering this line in the terminal connected to the ...
jjjjjjjjjjjjjjjjjjjjjjj's user avatar
0 votes
1 answer
293 views

SFTP to multiple machines in single command

I want a single SFTP command to transfer one file to two machines. Is it possible?
Karthik's user avatar
0 votes
0 answers
125 views

vsFTPd config error when using local_root=

What I am trying to achieve is the following, vsFTPd server which uses a different directory on a different mounted disk and jails each user to that directory while TLS/SSL is forced. Currently I have ...
Rettercon's user avatar
1 vote
1 answer
7k views

SFTP with passphrase (one line command)

This works, but then I have to type the password manually sftp -oStrictHostKeyChecking=no -i ./id_rsa user@host << ! cd /path ! This doesn't work. The command never completes execution export ...
clarkk's user avatar
  • 1,797
0 votes
1 answer
346 views

Ubuntu Server - Allowing user to upload and download across the entire filesystem - sFTP

I'm a Linux newbie. I'm playing around with Ubuntu Server 22 I've got a standard image spun up using AWS. I'm using MobaXTerm as my SSH client it has the facility to upload and create folders/files ...
Hevski's user avatar
  • 101
3 votes
2 answers
497 views

SFTP issue with profile output

After SFTP logins were no longer working with error 127 we found that the SSH connection created some output by a script installed in /etc/profile.d/. Previous versions of sshd had an option available ...
Marki's user avatar
  • 845
0 votes
1 answer
123 views

How can I share files on the server with others users in internet?

I have a linux server that I manage via SFTP and SSH. Some files are generated on the server through scripts. How can I make it so that I can give users on the Internet links to specific files (so ...
Voltara's user avatar
1 vote
0 answers
184 views

How to configure permissions for Samba and SFTP in a compatible way?

I have a NAS made by myself with Linux Debian and this path shared via Samba: drwxrwxrwx 5 nobody nogroup 4096 Jan 22 12:57 shared My goal is to have this layout: └── shared ├── private └── ...
madtyn's user avatar
  • 141
0 votes
2 answers
28 views

Can I create an SFTP account that has access to all chrooted directories?

We have school districts that SFTP us student info which we process and load into another app. The system we have been using is dated and under another dept's purview. I have set up a chrooted SFTP ...
Chanel's user avatar
  • 99
0 votes
0 answers
68 views

Restrict access to web directory using acl

The requirement is to allow a specific user (e.g. someuser) full access to a directory (e.g. /var/www/html/someproject) via SSH/SFTP, but not allow browsing anywhere else. Is it possible using only ...
Arn's user avatar
  • 1
0 votes
1 answer
1k views

Ubuntu SFTP connection to Ubuntu server rejecting with "Permission denied, please try again."

I have a personal server connected to my local network, and recently wanted to set up an SFTP-Server on it for some media transfer. When I try to connect to it however, it asks for my password, but ...
nick16384's user avatar
0 votes
0 answers
531 views

using ubuntu as a client to connect to bitvise ssh server on windows

Ok, lets see if i can convey what i am trying to do as best as i can. I have a bitvise server at my parents house 3 hours away. It is running on windows. I have used bitvise key management system to ...
Matt Thomas's user avatar
1 vote
1 answer
372 views

Excessive SFTP CPU usage with chroot enabled when using the official Docker repository

I have a fairly niche problem involving Docker, Fedora 37, and a 500M+ pull SFTP image, atmoz/sftp. I installed Docker from the official repository, instead of Fedora's, and when I try to log into the ...
Daniel Szabo's user avatar
0 votes
1 answer
537 views

sftp how to get the folder size and total count of files in a folder

want to know the folder size and also the count of total files in the folder over sftp. Even using lfpt is fine. I know in linux we can use du -sh for getting folder size.
Santhosh's user avatar
  • 389
1 vote
1 answer
210 views

How terminus(multiplatform app) connected to my host without SHH key?

I created a debian based lamp instance on cloud platform used putty gen to generate ssh saved public key in cloud account. It booted and ip address in browser address said it is working (apache ...
Sandeep's user avatar
  • 13
1 vote
0 answers
134 views

How to prevent conda from printing information when opening terminal?

How can I prevent conda from displaying information when opening a shell? I installed anaconda on a linux server under my account (no admin rights). I then initialized it (conda init tcsh) and all ...
Boris Reif's user avatar
-1 votes
1 answer
1k views

Curl using public key authentication instead of password and not asking for fingerprint verification

I have a following command, where I am trying to upload a file remote host using curl and sftp. curl -v -k --user user1:password -T /home/user1/file1.txt sftp://hostname/home/user1/ When I run this I ...
Nullpointer's user avatar
0 votes
0 answers
186 views

I am writing a cronjob, I need a command that confirms that some of the files are successfully transferred from an MFT server to my local server

I use the following command: sftp -o "StrictHostKeyChecking" -r -P [portNumber] technicalUser@hostName:/path/2022* /LocalPath After I execute the above command, all of the files which start ...
Kawhi Goat's user avatar
0 votes
1 answer
182 views

Using regular expression in lftp to ignore some strings from file name

Get specific file with name like abc_yyyymmdd_hhmmss.csv from directory using mget. Example files in a folder: abc_20221202_145911.csv abc_20221202_145921.csv abc_20221202_145941.csv ...
likeGreen's user avatar
  • 101
0 votes
1 answer
640 views

Moving files from google drive to terminal server using SFTP

I want to get a folder that has subfolders on to a terminal server using SFTP. The source folder is in Google drive. Can somebody provide me how to write a script using linux commands?
pinky's user avatar
  • 1
1 vote
1 answer
371 views

How to allow SSH session to linux server but, do not allow SFTP file transfer?

We allow SSH access to admins along with SFTP file transfer access using PAM. Now unique case is to grant SSH session to one particular user to read/write/execute files but do not allow transfer file ...
user avatar
1 vote
1 answer
3k views

Rocky Linux 9 not accepting SFTP connections from old Dreamweaver version (no matching host key type found. Their offer: ssh-rsa,ssh-dss)

Running Rocky Linux 9 on server and I am trying to connect by password, not by key... It works when connecting with Putty on port 22, but when I try to connect with an old Dreamweaver version, ...
adrianTNT's user avatar
  • 573
1 vote
3 answers
220 views

Extract file length from output of 'ls -l' passed back from sftp session

From my local server I only have access to stfp to a remote server where I want to check the size of my backup file as it's being created. So I've been able to write a bit of bash that logs in and ...
Jock Coats's user avatar
0 votes
0 answers
3k views

How to Transfer file from the AS400 system using SFTP

I have a CL program with me which calls the QSH command as below. By executing the command from the program, I am able to establish connectivity with the SFTP server from the AS400 system. **QSH CMD('...
Soumya Sen's user avatar
0 votes
1 answer
3k views

sFTP : Error message : client_loop: send disconnect: Broken pipe

I'm getting the following error while trying to connect to server via sftp : "client_loop: send disconnect: Broken pipe" Could someone help me ? Server : Ubuntu 22.04 lts 1. chown -hR root:...
user5647528's user avatar

1
2 3 4 5
14