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.
5
votes
1answer
748 views
how to set the sftp -s subsystem option in a configuration file
The sftp command supports a subsystem option (-s) which allows the remote user to select the remote sftp-server executable, and optionally upgrade to sudo in the process like so;
sftp -s ...
-1
votes
3answers
86 views
Is there a way to 'authorize' a command typed in by a user?
is there a way we can authorize a command typed by a user before it takes effect?
For example, when a user types cp file1 file2, the command will not be executed and a root / root-equivalent user ...
3
votes
1answer
2k views
can not sftp: returns 128 “is the sftp server running”
I can ssh to my EC2 instance (amazon linux) (same user, from same machine, same certificate) however I can no longer use sftp.
Logging in via WinScp (via my windows7 box) for SFTP used to work, but ...
16
votes
3answers
4k views
Restricting an SSH/SCP/SFTP user to a directory
Is there a simple way to restrict an SCP/SFTP user to a directory? All methods that I've come across require me to set a chroot jail up by copying binaries, but I don't think that should be necessary.
...
0
votes
1answer
32 views
While setting up SFTP between *nix servers, is the intial handshake optional?
I setup SFTP between *nix servers as follows:
Generate the Public key on the sending server by running the below command:
[user1@server1] $ /usr/local/bin/ssh-keygen -t rsa -b 1024
Then copy ...
3
votes
3answers
2k views
Using nohup on Solaris 10
I need to transfer a large number of files over SFTP (only between Solaris servers) which takes a very long time. I cannot keep my PC on for this duration. I tried:
nohup sftp server1
While the ...
1
vote
1answer
166 views
Set up chroot for LDAP users in RHEL6
I have been working on this for 2 days now and am about to give up so someone please help.
I have a Red Hat 6 server joined to my active directory domain. Logins work just fine under normal ...
0
votes
0answers
81 views
Using Filezilla to upload files to remote server under a proxy server
I am using Filezilla to upload files to my web server. I am under a proxy server of my college. I edited FTP proxy in Filezilla Settings. However, it shows the following error :-
Status: Selected ...
0
votes
0answers
60 views
Creating a Safe Web Server
Web server hosts multiple websites. Multiple users update each website.
User home directory
/home/user1
/home/user2
Web directory
/var/www/site1
/var/www/site2
Each user uses SFTP to upload ...
0
votes
1answer
90 views
I'm only allowing pubkey auth via ssh. How can I still log in with password?
vi /etc/ssh/sshd_config
egrep -i 'Pubkey|Password|Listen' /etc/ssh/sshd_config | grep -v '^#'
ListenAddress 0.0.0.0
PermitRootLogin without-password
PubkeyAuthentication yes
...
0
votes
2answers
425 views
how to configure VSFTPD for sftp?
I have installed sftpd utility on fedora 10 to restrict users to there (chroot) home directories. It works fine when i use ftp prompt to connect. However it does not work when i connect using SFTP.
...
1
vote
0answers
90 views
Unable to transfer files via SFTP when using a normal user account
I'm unable to transfer files via WINSCP>sftp to a GNU/Linux server. When transferring a file using root account, there's no problem. However, when I transfer using another account, the file being ...
2
votes
2answers
487 views
How can I make a shared directory accessible by SFTP?
I have set up an sftp account in /home/sam, created a group sftp, and added the user sam in it. i gave chown sam:sftp /home/sam for the user to perform operations in that directory.
Now I have ...
1
vote
0answers
120 views
Making ChrootDirectory directory writable by SFTP user
If a user logs into a machine via SFTP, one can make use of ChrootDirectory keyword to give an illusion that user is in a root directory. But that directory is only writable by root user. I would love ...
0
votes
0answers
138 views
sftp gives an error: “Received message too long” and what is the reason?
I was able to do sftp yesterday to a RHEL 5.4 box (RedHat) and today I can't.
The message is "Received message too long 778199411", and after some investigation, it was due to my RHEL box's .bashrc ...
1
vote
2answers
831 views
Limit bandwidth SFTP user
Is there any possibility to limit the bandwidth of an SFTP user? My server has an upload of ~500kb/s and I don't want to 'spend' it all on one user
4
votes
5answers
387 views
Sftp interface to Scp
I have a linux based router that doesn't have the SFTP server installed. More specifically, when I sftp user@ipaddress I get a sh: /user/libexec/sftp-server: not found error. My interest isn't trying ...
12
votes
3answers
2k views
What's the difference between SFTP, SCP and FISH protocols?
I used to think SCP is a tool to copy files over SSH, and copying files over SSH is called SFTP, which is itself a synonym to FISH.
But now as I was looking for a Total Commander plugin to do this in ...
3
votes
1answer
2k views
sftp a file using shell script
I have read through several threads (which have been helpful) and I'm still getting an error when trying to sftp a file (client wants it to be sftp'ed)
Here is the script:
#!/bin/bash
...
1
vote
1answer
988 views
Automated SFTP upload with curl
I want a file to be uploaded daily to remote server using automated ftp command. Can someone please help me on this below command to check whether it's right or wrong?
curl -Tu username:password ...
1
vote
1answer
489 views
Script to get file from SFTP and run it
We have 5 servers running our code: A, B , C, D and E.
From a local machine, we sftp the file to A. Then
ssh id@A
su - applicationname
sftp id@A
get <file>
bye
tar -xzf <file>
logout
...
3
votes
3answers
2k views
How to send multiple commands to sftp using one line
The following command sends one command to sftp using one line:
sftp -o PasswordAuthentication=no user@host" <<<"lcd /home"
How to send multiple lines to sftp using one line. Is there a ...
2
votes
2answers
307 views
Can't copy/move between filesystems with SFTP
Are there any limitations on SFTP that prevents a user from copying between filesystems? I have a SLES with SFTP, and users can't copy/move files between filesystems, even when the target is chmod ...
2
votes
1answer
241 views
Specific directory permission for one user using sftp
My web server structure looks like this:
/Home/User/Public_Html/Website_one
/Website_two
/Website_three/Directory_one
...
5
votes
5answers
10k views
Uploading directories with sftp?
I'm having some trouble uploading directories(which contain other directories a few levels deep) by sftp. I realize I could work around this by gzipping, but I don't see why that's necessary.
Anyway, ...
1
vote
4answers
699 views
I uninstalled vsftpd, but I can still connect with sftp
I installed vsftpd and was in the process of configuring it. When I sent the vsftpd server stop command:
sudo service vsftpd stop
I received:
stop: Unknown instance
So I went ahead and ...
1
vote
1answer
340 views
Safety of SMB versus SFTP
I have a server with OpenSSH enabled. I use it to make distant backups. I mainly use rsync over SSH and SFTP. I understood that these protocols are quite safe.
I am interested in enabling Samba share ...
2
votes
1answer
560 views
SFTP: give user access to folder outside home
I have a machine running Ubuntu 12.04 LTS with OpenSSH server installed. I have created a user with a jailed home account.
When I log in with the user's account, I can only access his home (duh).
...
3
votes
1answer
284 views
Does the SFTP server accept passwords at all?
I'm trying to connect to a sftp server via sftp USERNAME@SERVERNAME. Whatever I do, I get "Permission denied (publickey)." Googling doesn't help as everybody recommends switching to key-based ...
0
votes
1answer
421 views
qemu: how to access host via sftp
I started a guest vm with
qemu-system-x86_64 -net user -net nic -redir tcp:10022::22 -m 500 -hda op.img
From the guest, I'm able to ssh the host machine, but can't connect via sftp
The command I ...
1
vote
3answers
311 views
Can directory listing be disabled for sftp?
A question arose in a group discussion: Can directory listing be disabled for sftp while still retaining read and write access?
We are using openssh on ubuntu server 11.02 if that helps.
2
votes
2answers
847 views
SFTP and sudo using Windows client?
I want to download files from a linux system using a windows client. While there are many SFTP clients I am having the problem, that I need to access files where I need to be root. On the linux system ...
1
vote
0answers
284 views
kio sftp does not work but fish works
If I try to initiate an sftp connection from dolphin (or konquerer),
it tells me the password is wrong and asks me for the correct password.
Incorrect username or password Do you want to retry?
...
1
vote
1answer
336 views
Start SSH session in some other directory than their home directory and lock them there
I've set up a SSH server which I've let some friends log into, both via SSH and FileZilla. I put a symbolic link to two hard drives in their home directories so that they could access some files. This ...
3
votes
1answer
832 views
Why does sftp hide the log from stdout?
I have a script a.sh, which has an sftp command:
echo "Starting to sftp..."
sftp xxx@xxx.xxx.xxx.xx << END_SCRIPT
ls
mput *.csv.gz
bye
END_SCRIPT
echo "Sftp successfully."
If I run it ...
1
vote
0answers
68 views
Can selinux log an application owner name?
So I've set up selinux to log all file access operations in a certain directory. Here's some sample log output when doing an ls from sftp:
type=AVC msg=audit(1338465611.221:356): avc: granted { ...
1
vote
3answers
576 views
SFTP server on RHEL6 disconnects on ls
I've followed the steps outlined here to create a chrooted sftp environment. Everything works great EXCEPT for the command ls. When I do an ls, with any of the flags, I get disconnected ...
2
votes
2answers
600 views
SFTP with Mysql user pass instead of PAM
Is there a way for people to log onto a debian server via sftp using just mysql database table as authentaction. IE not adding a user to the system?
I know it can be done over ftp and TLS but i ...
3
votes
3answers
2k views
Using sftp to Transfer a Directory?
When I try to use sftp to transfer a directory containing files, I get an error message:
skipping non-regular file directory_name
The directory contains a couple of files and two subdirectories.
...
2
votes
1answer
5k views
How do I use sftp to get a directory and all its contents?
When I try to use the command get from sftp, I get the error saying that it is not a normal file. Is there a way around this?
1
vote
2answers
350 views
Suggestions for a Linux distribution for a dedicated SFTP server
I have a desktop which has more than 16GB of memory that I want to dedicate as an SFTP server. Many people have suggested that I install Linux, so I have decided to go with Linux. I am puzzled and ...
3
votes
2answers
2k views
Disable direct login for normal users (like oracle) in linux but allow scp and sftp?
Is it possible to disable direct login for normal users (like oracle) in linux but allow scp and sftp for that use?
2
votes
1answer
236 views
Setting up a user for sftp acces into a sub directory of another users home directory
An interesting problem.
The broader goal is to setup a directory that one of our clients can sftp into (via ssh keys, not user/pass combination) and upload files. This directory will need to be ...
2
votes
2answers
477 views
How do I transfer multiple files with a common suffix and prefix using an offset?
I have thousands of files whose names are of the form:
sequence_1_0001.hmf
sequence_1_0002.hmf
sequence_1_0003.hmf
...
sequence_1_0001.jpg
sequence_1_0002.jpg
sequence_1_0003.jpg
...
...
5
votes
1answer
279 views
Why is it possible to leave CHROOT with this config?
I'm trying to create the user lenny, that has read and write permissions in the folder /home/lenny/ and has no shell but only access via SFTP. I'm doing the following:
useradd lenny
mkdir /home/lenny
...
1
vote
2answers
2k views
How to connect through sftp to a non-standard port on Midnight Commander?
In Midnight Commander one can make an SFTP connection to a remote machine using:
cd #sh:yourusername@example.com:/home/username/
How can this be done when the remote machine is using a non-standard ...
1
vote
1answer
398 views
Ubuntu 11.10 SFTP chroot jail problem
I am creating a SFTP server with Chroot Jail. The problem is user cannot log into the home directory. I need to keep ChrootDirectory value to one directory above the user's home directory ...
2
votes
1answer
586 views
Monitoring the OpenSSH sFTP process?
Is there a way to monitor the current status of my sFTP process from my Debian server?
I'm looking from something similar to top or netstat that will give me the status/progress of activities ...
1
vote
1answer
688 views
Why am I getting a “Listing remote folder failed” error when I try to connect with SFTP?
I set up SFTP, but I have a problem regarding iptables. Here are my rules:
A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
A RH-Firewall-1-INPUT -m state --state NEW -m ...
2
votes
4answers
207 views
SSH Do not connect even with publickeys installed
I'm trying to connect two servers. I got the id_dsa.pub key from user john from server A and paste into authorized_keys of user mike from server B.
Then I tried to connect from server A to server B ...

