|
|
ProFTP - ProFTPd - Failed binding to 0.0.0.0, port 21: Address already in use - PureFTP puredb add users - SSH automatic authentication
If you start ProFTP with inetd/xinetd and get these messages in syslog:
Failed binding to 0.0.0.0, port 21: Address already in use
Check the ServerType directive to ensure you are configured correctly.
Check
/etc/proftpd.conf
if the server-type is set to:
ServerType inetd
On the other hand, if you running it standalone
/etc/proftpd.conf
ServerType standalone
check which application binds to port 21 with
# netstat -pant
and decide what to do (e.g. stopping the application in order to run the FTP-server)
Well, and since we're at setting up new linux servers, here are some things which
are very useful too:
PureFTP (pure-ftpd) puredb add users
If you compiled (or got a package) of PureFTP with the option ("./configure --with-puredb") you need
to add virtual users:
pure-pw useradd [existing-system-user] -u [new-ftpuser] -d /home/ftpusers/joe )
e.g.
# pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe
SSH RSA automatic authentication
If you have e.g. an internal devel-server and you got sick of providing a password each and
every time, you can automate that:
On your workstation do:
# ssh-keygen -t rsa
copy ~/.ssh/id_rsa.pub to the remote machine to
[user]/.ssh/authorized_keys
Make a script on your local machine
login.sh
#!/bin/sh
ssh [user]@192.168.0.3
move it to e.g. /bin/ , "chmod +x /bin/login.sh"
and login with
# login.sh
Last-Modified: Sat, 04 Feb 2006 16:03:02 GMT
|
|