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
0answers
11 views

CentOS 7 - ChrootDirectory lock sftp-only users into certain folders

I have several users who connect via SFTP only to drop off and collect files and we need to lock each user into their own folder structure without access to the rest of the system. So if we have "...
0
votes
1answer
19 views

Suppress sftp's info and errors but show progress

I have this sftp -q my_host:my_dir 1>/dev/null 2>&1 <<EOF some_command some_command some_command some_command put foo bar some_command exit EOF This suppresses: banner ...
0
votes
1answer
37 views

What command can I run to open a remote folder in GUI using an identity key?

I recently used the nautilus file manager to open up remote folders hosted on my Linux VPS. Each time I want to access them, I need to manually connect to my server through GUI. I was wondering if ...
0
votes
0answers
10 views

If you're going to build a chroot jail, shouldn't you take in only the libraries that the user needs?

Say there's only a couple of commands I want a user to be able to run in a chroot jail. If I include more libraries / commands than they need in the jail, doesn't that create a security issue? And ...
1
vote
1answer
108 views

How to setup user access control for Apache, SSH, SFTP?

I would like to: give a SFTP access to a friend to his directory /home/friend on my server give him a web hosting with Apache in /home/friend/www/ not allow him to visit /etc/ and similar directories ...
0
votes
1answer
19 views

Isolated jailed SFTP user: why can't the user connect the server anymore?

I just created a new user friend on my server, the goal is to give SFTP access to someone else (a friend of mine). I noticed that when connecting the server by SFTP with user friend, the default ...
-2
votes
0answers
23 views

What could cause these different results during SFTP transfer in a shell script? [closed]

I need to download a couple of files from a remote server using sftp on a shell script. I am a beginner at this but I have already made it work. I log in using an authentication file and create a ...
0
votes
2answers
34 views

How can I tell if a shell is spawned by sFTP with “Escape to local shell”?

After connecting to a remote machine with command sftp hostname, ! could be typed within the sftp prompt to "Escape to local shell`. Is it possible to tell whether I'm in a shell spawned by sftp?
0
votes
1answer
88 views

SCP giving “exec request failed on channel 0 lost connection”

first off, I know that this question has been asked before, but I'm very technologically illiterate and I'm unable to understand the answers (and they've all been answered a couple years at least), so ...
0
votes
1answer
68 views

problem sftp connection with rsa keys

I am on RHEL 6. I have a user Jack which doesn't have shell access but SFTP. With my own user, I have created an RSA key pair with ssh-keygen command for jack (the user). I have created .ssh folder ...
0
votes
0answers
45 views

SFTP server on raspberry pi with multiple users

I'm trying to make a NAS out of my raspberrypi and instead of using Open Media Vault, I want to see if I can do it with Raspbian since I want to also install nextcloud and installing nextcloud on open ...
0
votes
1answer
63 views

My custom SFTP config allows for file creation but no modification or deletion. Can this be done to directories?

I've figured out how to accomplish a "create-but-don't-modify" permission scheme using SFTP. But it works for files only; I'd like to expand it to directories. Background: I have an SFTP server (...
1
vote
1answer
64 views

SFTP logs in Ubuntu 18.04

Where can I find log messages for sftp? I want to find all log messages related to sftp-server - file sent, file received.
0
votes
1answer
25 views

Create a text files from the output of find command and send the text file to a remote server using SFTP

I have a find command that gives the list of files that are older than 5 days, i can tee it into a text file. find . -type f -mtime +5 -ls | tee $dir/new.txt Now i want to send this text file to a ...
0
votes
0answers
16 views

sftp put - equivalent to rsync

I would like to use the command put to recover an ongoing file transfer via sftp after a broken pipe. Files should be uploaded only if the destination size is smaller than the one of the source file. ...
0
votes
2answers
48 views

Migration from FTP to SFTP with the same user

We will start to use SFTP instead of FTP for Tibco BW 5 application on RHEL 6. The port 22 is already open. Can i keep the same user account and directory for SFTP? If so, should i change any ...
0
votes
1answer
20 views

How i can restrict an sftp user for rename and append any uploaded file or directory [closed]

How i can restrict an sftp user from renaming or appending any uploaded file or directory?
1
vote
1answer
24 views

Colon after user in SFTP connection string

I've come across using a value separated by a colon after the user in a connection string, e.g. sftp user:abc@hostname. Can anyone tell me what it should do? I haven't been able to figure it out by ...
2
votes
1answer
56 views

To move a new file in a folder when the transfer is done

I will rent a server. Some people will upload some files to their allocated folders (I'm thinking of using sftp), and at the moment the file transfer is done, I want to move it to my folder in the ...
0
votes
1answer
32 views

How to allow file xfer for users to/from a system, but not ssh, without changing their shell [duplicate]

Clunky title, but wanted to be clear that it's not the same as previous variations on this question. Here are the parameters: HPC cluster where users auth via LDAP They may use interactive logins to ...
1
vote
2answers
160 views

Connect to “FTP over TLS” with sftp

I have been wasting more then an hour on this now and I think this should be really simple... I have an azure website that allows me to connect and deploy to it using sftp. I can connect to it fine ...
0
votes
0answers
18 views

SFTP randomly closes out customer SFTP connection from IBM Sterling

I'm at a bit of loss in troubleshooting this issue. We run an Ubuntu 14 server which functions as an SFTP server. OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.10, OpenSSL 1.0.1f 6 Jan 2014 The customer gets ...
0
votes
0answers
24 views

SSH with priv key and google authenticator and SFTP

I followed a guide on how to setup SSH using private key and google authenticator and it works fine... I disabled Rootaccess, setupup privatekey and the authenticator. Then I was trying to enable ...
4
votes
1answer
70 views

Sftp Connection Via Gigolo on Debian 10 “Buster”

Trying here to establish sftp connection via Gigolo on Debian 10 "Buster" with Gigolo application, but when connecting at sftp://user@192.168.41.72, for example, receives here Location is not ...
6
votes
2answers
172 views

SSHFS/SFTP : Vim hangs when trying to edit file over sshfs and can't upload file over MTU size over sftp

My university provides an ssh access to the students university accounts, and I just set up an sshfs to access some folders on my remote account. I am running pop_os on my local machine and using ...
0
votes
0answers
15 views

How to stop fetching data sftp?

How to stop fetching data in sftp? I use get for fetching data, but the ETA is too long and therefore I want to stop it. After some search I cannot find the solution. Maybe I use the wrong keywords ...
-1
votes
1answer
52 views

Allow SFTP access but not SSH access with Active Directory groups (not local logins)

So I am building a CentOS 7 server for the specific use of using it as an SFTP server. We are migrating VM's and the SFTP server is being rebuilt. So we already have an Active Directory Security ...
0
votes
1answer
39 views

Get remote files by a list preserving their relative paths, and do it on a remote machine

1) I run SSH session on the remote client to get files from the server. 2) There is a server and it keeps a very broad directory structure. 3) I've got a list of thousands path-names to the files ...
1
vote
1answer
194 views

Provide get commands to SFTP from a script file but keep interactive password login

I have an FTP server that allows only SFTP connection – and only via password. I have a list of files on the server - hundreds and thousands of files in many directories. And the directories contain ...
1
vote
0answers
28 views

sshfs troubleshooting: what would cause openssl to fail?

I believe sshfs requires an sftp server on the remote computer (router): ipkg list_installed | grep -i sftp openssh-sftp-server - 5.9p1-1 - sftp-server only from a FREE version of the SSH protocol ...
1
vote
1answer
140 views

Unable to Untar or Unzip from SFTP connection

I am able to zip and transfer files using SFTP with the below commands from my script: zipfilename="Order_$(date +"%Y%m%d%H%M%S").zip" echo "Start Execution" $(date +"%Y%m%d%H%M%S") >> "$...
1
vote
1answer
111 views

File transfer from linux to windows share folder on daily basis

I can transfer file from linux to linux. Also can transfer from linux to windows or windows to linux by using cmd pscp command. But system asks for password. So I have tried winscp batch command for ...
2
votes
0answers
56 views

SSH-key accepting passphrase, but moving on to password authentication? (only happens between one server pair and not a similar pair)

I've been scratching my head at this for a while now. I needed to set up ssh-key based authentication for sftp. So, I generated the key files with a passphrase and sent the public key to the other ...
0
votes
0answers
19 views

How to run the shell script on remote server from a windows shell script or a bash script?

I have created a shell script to upload git files from windows to bitbucket. Now I have placed that shell script in Linux box because the source folder exists on Linux was from directly I want to ...
1
vote
1answer
268 views

SFTP server not working

I'm kinda inexperienced at Linux, so I will just leave here all commands I used, to set up SFTP server on Ubuntu 18.04 Server. My goal is to create an SFTP server, with the following criteria: All ...
1
vote
0answers
633 views

sftp “remote open failure”

I sftp'ed into my linux server from my macbook. I have never had issues transferring files through sftp until now. I am getting the following error when I try to put something on my linux server ...
1
vote
1answer
429 views

SFTP legacy key exchange methods

After upgrading to Debian 10 (Buster) I can no longer connect to a SFTP server no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 ...
-1
votes
2answers
319 views

winSCP cannot access proFTPd via FTP or SFTP

I want to setup SFTP on my debian server to upload some files via winSCP. I had FTP working already but I find it hard to get SFTP working. I have followed this guide: Setup SFTP in ProFTPd (eccept ...
2
votes
1answer
40 views

Question about CentOS shared sftp directory and additional drive space

We have an SFTP server (CentOS) set up to give our clients larger files. We set each user up with the following commands: useradd -g sftpgroup -d /data1 -s /sbin/nologin user1 passwd user1 mkdir /...
0
votes
1answer
154 views

How to restrict use of SFTP feature “escape to local shell”?

In order to make a file server with restricted access, I set the following configuration: On the file server (Debian Wheezy) Create a user data-reader without home, without shell, in the group named ...
1
vote
1answer
50 views

I am getting an error while doing SFTP

I am trying to send a file using SFTP. But getting below error while using it. $sftp WFHxYd4JIP@axst-dev mo.wellsfargo.com:/tdcs/config/crontab.BCP /opt/qrmftp/.ssh/config line 2: Bad SSH2 Mac spec '...
2
votes
1answer
138 views

curl delete command won't work in scripted for loop

Is there any reason why a curl command won't work with variables? Here is my set up - I am not using real values as I can not expose client data and I have no test environment. You will notice that ...
1
vote
1answer
120 views

sftp with batch mode suppresses mput and mget command response echo

I recently upgraded OpenSSH from 6.0 to 7.5. My code captures the put/get command response echo and processes it for verification. Code: exec 3>&1 4>&2 exec > $TempSessionLog ...
2
votes
1answer
332 views

SFTP remote readdir Failure - national characters in file name

I have created a directory with national characters in it's name. I can see and browse this directory via ssh # cd /root # ls СтранноеРусскоеИмя but can't do it via SFTP: sftp> cd /root sftp>...
1
vote
1answer
846 views

Transferring files via Binary mode in SFTP

While using FTP we can use the option bi to transfer files in binary mode however I am unable to find similar option in SFTP. Please find my code snippet below.. fileTransferToDEST() { echo "mput $4/$...
2
votes
1answer
292 views

Check if the file has been successfully transferred to the destination with SFTP

We have a daily process which moves file from 1 server to another via FTP using a script. Please find the snippet below: fileTransferToDEST() { ftp -inv $DEST_IP 1>$2 <<END_SCRIPT quote USER ...
1
vote
1answer
323 views

Deleting the files from a SFTP server based modified time (SSH not enabled )

Need to delete the files from a sftp remote server based on last modified time .Files which are older then 30 days no need to keep in server .I have tried ls -lt ,but how to copy it to local machine ...
0
votes
1answer
330 views

How to debug/trace incoming SFTP conversations?

My application (JetBrains CLion) connects to my remote server by SFTP and places files to there. Unfortunately, files are appearing filled with zero bytes. I want to trace, what goes wrong. Can I run ...
0
votes
0answers
23 views

Graphical SFTP client for linux? [duplicate]

Does anyone know a sftp client for linux that has a graphical user interface? Something like MobaXTerm for windows?
0
votes
1answer
81 views

RH 7.5 Linux using curl with sftp to pull multiple files ending in a particular file extension

I am in a Red Hat Linux 7.5 environment. I am trying to write a curl script to pull/receive any file from a folder that ends with a particular file extension. Previously, I have written a script to ...