I tried with several ways which is given like telnet to test whether my ftp server working properly or not:
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 refusedftp ramaftp@127.0.0.1 ftp: ramaftp@127.0.0.1: No address associated with hostnameIn the above,
ramaftpis 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:
sudo mkdir /srv/ftpsudo usermod -d /srv/ftp ftpsudo /etc/init.d/vsftpd restartModified conf file:
local_enable=YES write_enable=YESrestarted 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
104 Answers
ftp 127.0.0.1
OR
ftp localhost
The FTP server will ask you for a username and a password.. plain simple! :)
3- Download Filezilla
- extract the downloaded package
- 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.55Returns 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.