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
-2
votes
2answers
15 views

SFTP jail for the root user?

So While I've been looking into ways of locking down users and locking them down into jails. I've came across an interesting question that I haven't seen answered anywhere. How can one posses the ...
0
votes
0answers
11 views

sftp working on FileZilla but not terminal

I can access my folder on ftp server normally using FileZilla. But when I try to connect using terminal sftp myuser@ftp.server.ip.address then it asks for password then it says Permission denied. I ...
2
votes
0answers
32 views

sftp get - but exclude node_modules

So my windows computer crashed - and I had to move OS so i moved all my nodejs apps to my web server. Now that I am running ubuntu 20.4 I am needing to get all these folders and copy them to my ...
0
votes
0answers
29 views

Trigger script on sftp upload, via hook or trigger?

Is there a way to trigger a script once a file has been uploaded to an sftp directory, on an Ubuntu based server? I was looking to see if there was a notion of ah ssh-trigger or ssh-hook, but I haven'...
0
votes
0answers
165 views

Couldn't stat remote file: No such file or directory message inside sftp prompt while doing “ls” or “mget” operation

I am facing a strange problem while using sftp via a shell script.  Here's the transcript of sftp code: sftp> lcd source_folder sftp> cd target_folder sftp> mget -p *_XXXX.dat ...
0
votes
1answer
39 views

Bash script sftp only downloading files to same directory script is in

I have a weird problem. I am trying to download a file from a ftp server to a different directory than what the bash script is running. If I do it manually everything works fine. I can connect type ...
0
votes
2answers
58 views

How to redirect 'wget' output stream to 'sftp put'?

I tried to take the output stream of wget and pipe it to sftp put, (wget|sftp), but that did not work, How can we do it ?, condition is I don't want to save the stream locally in my server as a file. ...
5
votes
1answer
105 views

A chrooted/isolated SFTP user can still visit the whole filesystem with PHP

I'd like to give an isolated web hosting space to a friend of mine on my server. I did: useradd friend groupadd sftpusers mkdir /sftp mkdir /sftp/friend mkdir /sftp/friend/home mkdir /sftp/...
0
votes
1answer
41 views

Listing the content of the SFTP working directory

I am trying to create SFTP Account and I have the following configuration in /etc/ssh/sshd_config Match group sftpgroup ChrootDirectory /sftp/ X11Forwarding no AllowTcpForwarding no ForceCommand ...
0
votes
0answers
11 views

How to set up Apache process to sftp a file using public/private key?

I am trying to set up an sftp process that must send a file under Apache's control on a RHEL 6 server. The destination server has the public key and I have the private key. I can send a file to that ...
0
votes
3answers
64 views

Timestmap of a SFTP-delivered file

I run a SSH server (a plain sshd) which receives files from multiple users in different timezones/DSTs via SFTP. These files are then polled and further processed by a set of worker jobs. In order to ...
0
votes
1answer
46 views

Ubuntu: Pointing an SFTP user to its working directory without listing other user's directory [closed]

I am working on configuring an SFTP server on Ubuntu Server 18.04. I want to create SFTP accounts that point directly to their working directory without listing others. For example if the real working ...
0
votes
0answers
16 views

Download a file from two fold login server

I have a file, say file.data in on server. How I 'access*' that file is following ssh institute@12.345.6.789 Enter Password: ssh username@123.45.67.89 Enter Password: ls I can see file.data here. ...
1
vote
1answer
15 views

Showing a symlink as-is over an sshfs mount

I have a filesystem on the host that contains symlinks (e.g. /foo/bar -> /baz/bar). I'm able to mount the filesystem over sshfs fine, but the symlink is resolved on the client, e.g. (they're ...
-1
votes
1answer
25 views

TLS upgrade impact over FTP/FTPS/SFTP

We planned to upgrade TLS version in our unix servers. Currently we are using FTP,SFTP and few FTPS connections to transfer files. So, If we will upgrade TLS version, will it impact FTP,SFTP and FTPS ...
0
votes
1answer
340 views

sftp put: how to prevent accidental overwriting of files

I am a long time user of FileZilla. Now for want of efficiency, I am switching to command line sftp from Linux desktop to a Linux server. The sftp put command works perfectly fine for uploads. ...
0
votes
2answers
145 views

SFTP with redirection and here doc has issues under Cron

The script below works fine when running from command line. I also put in a Cron Job, and I know the Cron Job is running because I see entries in the sftpFileLog.txt. But when running under Cron Job,...
3
votes
0answers
75 views

A strange output in welcome message

Days ago I found I cannot connect my server via sftp. Then I found that there is a dot in the welcome message when I login via ssh. .Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-72-generic x86_64)...
0
votes
0answers
87 views

How can I set up my Linux server to permit password login for sftp only, and require public private key for ssh?

I have a Linux server which I have configured to login with public private key for my account - and it works well. It's a long time since I set it up, so I can't remember what steps I took - but it's ...
0
votes
1answer
48 views

sftp timeout issue in one direction only

Summary: I'm trying to connect from my laptop to my Desktop to transfer files using sftp username@localIP but it gives me connection timeout Case: Both machines are using Linux and connected to the ...
0
votes
1answer
76 views

Linux file manager (Nautilus, Dolphin. Thunar, etc…) SFTP through intermediate server

I need to transfer files, as I would normally do, with my Linux file manager (Nautilus) via SFTP. However, in this specific case, I can't connect directly to the REMOTE server. I need to connect first ...
1
vote
1answer
88 views

sftp failed to connect when FIPS is enabled

Proftpd(1.3.5e and OS is CentOS 7) is configured to use sftp. When the FIPS is disabled sftp connects but when FIPS is enabled sftp is failed to connect to host. it throws the below error: Already ...
1
vote
1answer
86 views

Auto-compress SFTP file-transfer to reduce network data usage

When downloading /var/log/apache2/other_vhosts_access.log (100 MB) from a distant server to my local computer via SFTP, I noticed that the network transfer was not compressed. Indeed similar ...
1
vote
1answer
129 views

SFTP user activity logging on Ubuntu 16.04.4 LTS

I'm using Ubuntu Server 16.04.4 LTS to set up a SFTP server via openssh-sftp-server 1:7.2p2-4ubuntu2.8 from my Server I would like to log user activity (change dir, upload/download file etc). So, I am ...
0
votes
0answers
54 views

How to implement dynamic file permissions

I have application that creates a "records" of data. Every record has a directory with "attachments". User creates a record (via app web interface), my applications creates attachments directory and ...
0
votes
2answers
67 views

How can I copy files from one server to another using scp or sftp in shell script? [duplicate]

I am currently creating a script where I want to copy files from one server to another using either scp or sftp; the thing I'm confused with is authentication. If I use scp then how will I give the ...
0
votes
0answers
31 views

Linux SFTP client software (GUI based), supporting to keep file timestamp on download/upload?

Is there a Linux SFTP client software (GUI based), supporting to keep file timestamp on download/upload? I know sftp has such option, but I did not find sftp GUI client, which supports keeping ...
0
votes
1answer
45 views

Equivalent of `readlink` on SFTP

When I log into an SFTP server through the shell using sftp, I can navigate using the usual cd etc commands. One command I use frequently outside of SFTP is readlink -f $FILE to print the full path ...
0
votes
0answers
16 views

VSFTPD Not listing all directories

I am running into an odd situation where through various FTP clients, VSFTPD does not seem to return all directories in the directory listing. You'll see here in the FTP client that the error, ...
0
votes
0answers
72 views

Getting disconnect after succesfull connection

I have sftp server with settings: # This is the sshd server system-wide configuration file. See # sshd_config(5) for more information. # This sshd was compiled with PATH=/usr/local/bin:/usr/bin:/...
1
vote
0answers
25 views

sftp server without using linux user accounts

I have seen a lot of articles on how to create secure shells for user accounts that just need sftp only access. I am trying hard not to create Linux user accounts. I have been trying a number of web ...
54
votes
6answers
6k views

Is scp unsafe? Should it be replaced with sftp?

I have over 20 years experience in Un*x, and I have been using scp for immemorial times. scpis over SSH, therefore I consider it as secure as the latter. Now, in my company, where I recently took up a ...
0
votes
1answer
18 views

Unix authentication not working using Unix keyfile for one user but working for other

My OS details: NAME="Oracle Linux Server" VERSION="7.4" ID="ol" VERSION_ID="7.4" PRETTY_NAME="Oracle Linux Server 7.4" I am trying to create a Unix keyfile for one of the defined users.  But it is ...
0
votes
1answer
50 views

If ssh server is running in root context how does SFTP only has access to a specific user files?

This question might sound specific but that is because I'm making my own ssh server (a company needs some specific thing) and it has SFTP but because the server is running as root, it's giving any ...
0
votes
1answer
96 views

xargs command is running on local machine but results in an “invalid command” error when run on remote host

I run this command on my local machine to delete a list of files contained in a text file. xargs rm -r < deletion_list.txt It works as expected and deletes all of the files in the current working ...
2
votes
0answers
54 views

Edit ssh_config without ssh connection on a remote VPS

Yesterday, I was busy setting up my server and securing it. I am a noob at code, programming and webhosting, but I am trying to host my own website. So yesterday I changed some settings in the ...
1
vote
3answers
116 views

SFTP server with third party user management system?

I understand how to set up SFTP servers on Linux and create users and their passwords manually. So basically, the users get authenticated as normal Linux users get authenticated through /etc/passwd. ...
1
vote
0answers
25 views

Linux Network timers are off for a SFTP connection

In my application I'm performing SFTP operation. At one point due to a so far unidentified reason SFTP hangs endlessly. When I ran netstat -nop tcp 0 52 192.168.10.160:ssh 192.168.10.66:56832 ...
0
votes
1answer
212 views

Troubleshooting a SSH connection that keeps timing out

I am trying to troubleshoot why I can't connect to a remote SFTP from a Unix machine. The remote host has my public key, and my firewall is configured to allow the outbound connection to the host. I'...
-4
votes
2answers
296 views

Why sftp doesn't allow grep command?

sftp> grep "hello" login.php Invalid command. I am in the directory which contain login.php.
0
votes
2answers
158 views

If condition in local shell after sFTP connection

I've been using the following script successfully in a local shell to move a file from one directory to another if the file size is 0: if [[ ! -s /directory1/subdirectory1/file1.txt ]] then mv /...
0
votes
1answer
28 views

Linux sftp upload file from local machine to remote server

I am using command prompt. Successful connection to remote server and sftp. I am trying to upload a file from my pc, path: C:/Users/12534/Desktop/archomework/Hw01_test.pdf to my remote server ...
1
vote
1answer
32 views

Solaris functioning as FTP client but not as a host. Possible?

Apologies if this isn't the right forum but I need the advice of an FTP familiar engineer. For security reasons, FTP services are being shut down on our company's Solaris 5 server. The reason is that ...
0
votes
1answer
120 views

Remote SSH copy files with filenames that contain certain strings

I have two remote servers. One that I am currently connected to and one that I am trying to copy a lot of files to (10.10.0.13) I have a series of files I need to copy within various directories of ...
0
votes
1answer
51 views

Need to determine if firewall is blocking an outbound connection

I don't have direct control over the firewall. I'm trying to troubleshoot a connection to a SFTP site from a Unix machine. Pinging the host results in a timeout, and nmap is telling me the host may be ...
0
votes
0answers
406 views

packet_write_wait: Connection to XXX : Broken pipe

I'm trying to create a sftp user for my AWS EC2 Linux System. I added a user with username "sftpuser1" in a group named as sftp and modifed sshd_config file showing below: (......) ...
0
votes
2answers
2k views

How to put multiple files using sftp

Need your help in putting multiple files in the server. I have created a script but it is not putting all the files cd /buffer/miscellaneous/new/ cd $(ls -t | head -n 1) latest=$(find -mmin -60 | ...
0
votes
0answers
54 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
41 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
54 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 ...

1
2 3 4 5
11