Remote Accsess Dan FTP

FTP (singkatan dari File Transfer Protocol) adalah sebuah protokol Internet yang berjalan di dalam lapisan aplikasi yang merupakan standar untuk pentransferan berkas (file) komputer antar mesin-mesin dalam sebuah internetwork.
FTP merupakan salah satu protokol Internet yang paling awal dikembangkan, dan masih digunakan hingga saat ini untuk melakukan pengunduhan (download) dan penggugahan (upload) berkas-berkas komputer antara klien FTP dan server FTP. Sebuah Klien FTP merupakan aplikasi yang dapat mengeluarkan perintah-perintah FTP ke sebuah server FTP, sementara server FTP adalah sebuah Windows Service atau daemon yang berjalan di atas sebuah komputer yang merespons perintah-perintah dari sebuah klien FTP. Perintah-perintah FTP dapat digunakan untuk mengubah direktori, mengubah modus transfer antara biner dan ASCII, menggugah berkas komputer ke server FTP, serta mengunduh berkas dari server FTP.
Sebuah server FTP diakses dengan menggunakan Universal Resource Identifier (URI) dengan menggunakan format ftp://namaserver. Klien FTP dapat menghubungi server FTP dengan membuka URI tersebut.
Untuk melakukan kegiatan remote ataupun ftp pertama – tama kita harus mengatur ip kita agar dapat terkoneksi dengan server

  • Konfigurasi ip menjadi 192.168.0.111

    root@lab-2-desktop:/home/lab-2# mii-tool
    eth0: no link
    eth1: negotiated 100baseTx-FD flow-control, link ok
    eth2: no link
    root@lab-2-desktop:/home/lab-2# ifconfig eth1 192.168.0.111

  • Coba ping ip sendiri dan server dengan ip 192.168.0.1

    root@lab-2-desktop:/home/lab-2# ping 192.168.0.1
    PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
    64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=1.69 ms
    64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.126 ms
    64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=0.131 ms
    64 bytes from 192.168.0.1: icmp_seq=4 ttl=64 time=0.132 ms
    ^Z
    [23]+ Stopped ping 192.168.0.1
    root@lab-2-desktop:/home/lab-2# ping 192.168.0.111
    PING 192.168.0.111 (192.168.0.111) 56(84) bytes of data.
    64 bytes from 192.168.0.111: icmp_seq=1 ttl=64 time=0.039 ms
    64 bytes from 192.168.0.111: icmp_seq=2 ttl=64 time=0.017 ms
    64 bytes from 192.168.0.111: icmp_seq=3 ttl=64 time=0.014 ms
    ^Z
    [24]+ Stopped ping 192.168.0.111

  • Coba ping ke pc yg lain

    root@lab-2-desktop:/home/lab-2# ping 192.168.0.110
    PING 192.168.0.110 (192.168.0.110) 56(84) bytes of data.
    64 bytes from 192.168.0.110: icmp_seq=1 ttl=64 time=0.152 ms
    64 bytes from 192.168.0.110: icmp_seq=2 ttl=64 time=0.140 ms
    64 bytes from 192.168.0.110: icmp_seq=3 ttl=64 time=0.139 ms
    ^Z
    [26]+ Stopped ping 192.168.0.110
    root@lab-2-desktop:/home/lab-2# ping 192.168.0.109
    PING 192.168.0.109 (192.168.0.109) 56(84) bytes of data.
    64 bytes from 192.168.0.109: icmp_seq=1 ttl=64 time=4.26 ms
    64 bytes from 192.168.0.109: icmp_seq=2 ttl=64 time=0.147 ms
    64 bytes from 192.168.0.109: icmp_seq=3 ttl=64 time=0.142 ms
    64 bytes from 192.168.0.109: icmp_seq=4 ttl=64 time=0.147 ms
    ^Z
    [27]+ Stopped ping 192.168.0.109
    root@lab-2-desktop:/home/lab-2# ping 192.168.0.110
    PING 192.168.0.110 (192.168.0.110) 56(84) bytes of data.
    64 bytes from 192.168.0.110: icmp_seq=1 ttl=64 time=0.155 ms
    64 bytes from 192.168.0.110: icmp_seq=2 ttl=64 time=0.146 ms
    64 bytes from 192.168.0.110: icmp_seq=3 ttl=64 time=0.143 ms
    64 bytes from 192.168.0.110: icmp_seq=4 ttl=64 time=0.144 ms
    ^Z
    [28]+ Stopped ping 192.168.0.110

  • Masuk kedalam editor

root@lab-2-desktop:/home/lab-2# sudo nano /etc/apt/sources.list

  • Edit isi dari editor menjadi

    deb http://security.ubuntu.com/ubuntu intrepid-security main restricted
    deb-src http://security.ubuntu.com/ubuntu intrepid-security main restricted
    deb http://security.ubuntu.com/ubuntu intrepid-security universe
    deb-src http://security.ubuntu.com/ubuntu intrepid-security universe
    deb http://security.ubuntu.com/ubuntu intrepid-security multiverse
    deb-src http://security.ubuntu.com/ubuntu intrepid-security multivers
    deb ftp://192.168.0.1/repo ./

  • Update apt

    Pastikan terdapat :
    Get:1 ftp://192.168.0.1 ./ Release.gpg
    Ign ftp://192.168.0.1 ./ Release.gpg
    Get:2 ftp://192.168.0.1 ./ Translation-en_US
    Ign ftp://192.168.0.1 ./ Translation-en_US
    Get:3 ftp://192.168.0.1 ./ Release
    Ign ftp://192.168.0.1 ./ Release
    Get:4 ftp://192.168.0.1 ./ Packages
    Ign ftp://192.168.0.1 ./ Packages
    Get:5 ftp://192.168.0.1 ./ Packages [4475kB]

  • Install openssh

root@lab-2-desktop:/home/lab-2# sudo apt-get install openssh-server

  • Setelah itu coba untuk melakukan remote pada pc teman


    root@lab-2-desktop:/home/lab-2# sudo ssh 192.168.0.110
    root@192.168.0.110's password:
    Linux lab-2-desktop 2.6.27-7-generic #1 SMP Fri Oct 24 06:42:44 UTC 2008 i686

    The programs included with the Ubuntu system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
    applicable law.

    To access official Ubuntu documentation, please visit:
    http://help.ubuntu.com/
    root@lab-2-desktop:~# eject
    root@lab-2-desktop:~# exit
    logout
    Connection to 192.168.0.110 closed.
    ** Perintah eject digunakan untuk mengeluarkan tray disk pc yang kita remote dan perintah exit untuk keluar dari aplikasi remote
    Setelah itu kita akan melalukan ftp antar pc dan juga server

  • Install ftp

root@lab-2-desktop:/home/lab-2# sudo apt-get install vsftpd

  • Coba lakukan ftp pada pc sendiri

    root@lab-2-desktop:/home/lab-2# ftp 192.168.0.111
    Connected to 192.168.0.111.
    220 (vsFTPd 2.0.7)
    Name (192.168.0.111:lab-2): anonymous
    331 Please specify the password.
    Password:
    230 Login successful.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> ls
    200 PORT command successful. Consider using PASV.
    150 Here comes the directory listing.
    226 Directory send OK.
    ftp> exit
    221 Goodbye.

  • Edit editor ftp untuk menentukan file yang akan dibuka

root@lab-2-desktop:/home/lab-2# sudo nano /etc/vsftpd.conf

  • Editor ftp

    # Allow anonymous FTP? (Beware - allowed by default if you comment this out).
    anonymous_enable=YES
    anon_root=/home/ftp

  • Restart

    root@lab-2-desktop:/home/lab-2# sudo /etc/init.d/vsftpd restart
    * Stopping FTP server: vsftpd [ OK ]
    Starting FTP server: vsftpd [ OK ]

0 komentar:

Posting Komentar