Skip to main content

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
1 vote
0 answers
35 views

OpenSSH with admin user

I am setting up an OpenSSH sFTP server. I want to create a sFTP Admin user that can navigate all the folders and move files. My approach is the following: Create the other users (let's call it user_1)...
Throwaway123's user avatar
0 votes
1 answer
48 views

Chroot: Write access to an SFTP directory by non-root users?

Task given: Set up an SFTP server for ~100 clients and fill their ./in directory with pricelists.  The pricelist per client is updated and maintained by a different user-account (≠root) in the normal ...
Bernd Hohmann's user avatar
0 votes
1 answer
78 views

How to mount sftp server with sshfs

It is simple enough to connect sftp server with lftp command without any key or password : lftp 192.168.31.130:3721 lftp 192.168.31.130:~> ls drwxr-xr-x 1 nobody nobody 3488 Dec 22 20:17 ...
showkey's user avatar
  • 395
-2 votes
1 answer
18 views

How to establish sftp connection in vsphere client

I have been requested to establish SFTP connections using vSphere client. Initially, I tried to launch a web console, but after some questions about disk partitioning the screen just went blank. Thus, ...
Dimitris Tsiaousidis's user avatar
-1 votes
3 answers
192 views

What openssh version is best on Linux when it comes to stability and security ( sftp security )? [closed]

I work in a government agency. We are running a sftp client and sftp-server on a DMZ system where we receive and send files over the internet. Our environment: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 ...
Anders's user avatar
  • 3
0 votes
1 answer
19 views

Number of sftp connections allowed in a VM

I understand that more than one SFTP connection is generally allowed. I would like to ask if this is possible even in a VM (virtual machine). In other words, I would like to establish more than one ...
Dimitris Tsiaousidis's user avatar
1 vote
1 answer
60 views

cat vs. view and execution of file containing diacritics uploaded from Windows to Linux with WinSCP

I have a DE_CopyOldToNew.sh file that was created in Windows. The file is then uploaded to Linux using WinSCP. The file contains a whole bunch of cp commands that copies files to a new folder with a ...
Rico Strydom's user avatar
0 votes
0 answers
206 views

lftp for sftp is not working; stuck on `ls' at 0 [Connecting...]

I am having an issue with lftp where it gets stuck on `ls' at 0 [Connecting...] for an SFTP connection. Versions: Linux 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 4 14:55:32 EST 2024 x86_64 x86_64 ...
user3152289's user avatar
0 votes
1 answer
119 views

Unable to access proftpd server via sftp: port 22

I'm trying to replace a proftp server because the old one was encrypted during installation and the passkey is lost. Old server works fine on ftp:21 and sftp:22/322 old server is on ubuntu 16.04.7 lts ...
user16605410's user avatar
4 votes
1 answer
190 views

After changing the username, no SFTP login is possible anymore

I have SFTP server with many users connecting with different usernames. One user requested the name change. Since I thought that is pretty straightforward procedure, I did typical usermod --login ...
spaceman117X's user avatar
0 votes
1 answer
90 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,619
0 votes
2 answers
77 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
326 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
146 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
452 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
  • 363
0 votes
0 answers
92 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
762 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
74 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
598 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
1 vote
1 answer
3k 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
20 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
146 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
39 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
290 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
220 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,278
0 votes
1 answer
2k 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
312 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
144 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
69 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 (...
user avatar
0 votes
0 answers
628 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
  • 621
1 vote
2 answers
1k 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
59 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
500 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
557 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
  • 895
0 votes
1 answer
41 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's user avatar
  • 3
1 vote
1 answer
544 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
375 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
159 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
9k 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,847
0 votes
1 answer
650 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
663 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
  • 855
0 votes
1 answer
138 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
232 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
89 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
658 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
468 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
660 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
  • 409
1 vote
1 answer
340 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
2 3 4 5
14