Posts Tagged: sftp

HowTo use lftp as a sftp client

Posted by & filed under Linux, Network.

lftp is a file transfer program that allows sophisticated ftp, http and other connections to other hosts. If site is specified then lftp will connect to that site otherwise a connection has to be established with the open command. Basic usage lftp sftp://[domain name] lftp sftp://example.com Use a different user name than the one you [...]

Cold backup for the Open Source Edition of Zimbra

Posted by & filed under Linux, Scripting.

Today I’ve setup a cold backup routine to backup my Zimba installation running on my Debian (Etch) 4.0 server that is in full production now for my private domains. This is a slightly modified backup script for the Open Source Edition of Zimbra from the Zimbra Wiki. Please note that the script does a full [...]

SFTP in batch mode

Posted by & filed under Linux, Network, Scripting.

This post describes how you use sftp in batch mode. If you don’t want to type in your password read my SSH without a password post. Create a file named myCommands.sftp that contains the commands you want to run. My file looks like this # Change to your desired directory locally lcd /data/Hattori # Change [...]

Deny SSH- but allow SFTP access

Posted by & filed under Linux, Security.

This is an alternative way of limiting the SSH access to only SFTP explained in my How to restrict users to SFTP only instead of SSH post. Edit your /etc/sshd_config file and change your settings like this Match User username AllowTcpForwarding no X11Forwarding no ForceCommand /usr/libexec/sftp-server -l INFO Replace username with the user name you [...]