Can anybody tell me how to test ftp server in Ubuntu machine?

I tried with several ways which is given like telnet to test whether my ftp server working properly or not:

  1. rama@rama-desktop:~$ telnet 192.164.0.102 21
    Trying 192.168.0.102...
    telnet: Unable to connect to remote host: Connection refused
    rama@rama-desktop:~$ telnet 127.0.0.1 21
    telnet: Unable to connect to remote host: Connection refused
  2. ftp ramaftp@127.0.0.1
    ftp: ramaftp@127.0.0.1: No address associated with hostname

    In the above, ramaftp is the username that I have created earlier.

I am a novice in Ubuntu. Please help me to reset the ftp username and password for my machine.

I have tried:

  1. sudo mkdir /srv/ftp
  2. sudo usermod -d /srv/ftp ftp
  3. sudo /etc/init.d/vsftpd restart
  4. Modified conf file:

    local_enable=YES
    write_enable=YES
  5. restarted server with service vsftpd restart:

    stop: Unknown instance:
    start: Rejected send message, 1 matched rules; type="method_call", sender=":1.72" (uid=1000 pid=3629 comm="start vsftpd ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")

This is the error that I got, Thanks

10

4 Answers

ftp 127.0.0.1

OR

ftp localhost

The FTP server will ask you for a username and a password.. plain simple! :)

3
  1. Download Filezilla
  2. extract the downloaded package
  3. open bin folder --> filezilla

Filezilla configuration to access an Ubuntu machine open site manager --> new site

host: Protocol: SFTP login type : normal

Another way:

wget -O /dev/null -q ftp://192.168.1.55

Returns 0 if the server is up, otherwise returns positive/negaive value.

Expanation:

wget tries to reach the url, in this case an ftp server. The -O option redirects the output, if any, to /dev/null so it is not written to a file not to stdout. The -q option suppresses any additional output (like progress bar). The only remaining thing is the return value, which you can use.

If you open your ftp programme and enter the following details:

  • Protocol: SFTP
  • Host: 127.0.0.1
  • Port: 22
  • username: root
  • Password: ******************
  • Path: /var/www/

This should give you access to your 'local' server.

Screen Shot

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like