Arquivo

Artigos com Etiquetas ‘ftp’

How to connect connet/mount with SFTP and private key

30, Novembro, 2014 Nenhum comentário

That command should read

Code:

To use sshfs you need to install the package, the command to install it is

Code:

then to mount a remote host as the directory /mnt (your mount point) (you can use any directory you like even ones with stuff in – it will not write over the top of them the contents will just be invisible until you umount). Note the -o ssh_command… option should not be necessary if you have loaded your key using ssh-add /path/to/your/privatekey .

Code:

to unmount where /mnt is your mount point:

Code:

I prefer to use a mount point in my home directory. e.g. /home/username/mnt/ and use that as my mountpoint instead

Share this : Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInShare on TumblrEmail this to someone
Tags: , ,

VSFTPd Virtual Users

11, Janeiro, 2014 Nenhum comentário

This documenation was created from CentOS using the YUM package manager to keep things simple. Before you dig to deep you need the FTP Server to be installed. You can either install the FTP Server as you install CentOS or YUM group install it after the fact.

If you don’t have VSFTPd installed currently on your CentOS machine.

Needed for creating the user database later.

PAM configuration which configures the usage of the virual database we will be creating from a basic text file below.

In same cases the path of pam_userdb.so it’s different.

 

Add the user the virtual FTP server will use to log in all users.

VSFTPd configuration example used for this setup.

Create your text absed user and passwor

Create your text absed user and password list.

Insert your usernames and passwords

Create your user database from the entries located in the users file created above.

Create your user’s based FTP directory.

 

Fixes: not being able to write once logged into FTP

Fixes: “500 OOPS: cannot change directory”. If SELinux is not enabled or enforcing then this can be ignored.

Fixes: “425 Failed to establish connection” or “Client Error: Failed to retrieve directory listing”. If you have not run some sort of automated firewall utility you may need to add the module ip_conntrack_ftp to your iptables configuration. Just make sure your line includes ip_conntrack_ftp as stated below. If you are not running an iptables based firewall then this can be ignored.

And do this:

Share this : Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInShare on TumblrEmail this to someone
Tags: ,