1. Update, Upgrade lalu Install SSH
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install openssh-server
2. coba remote
$ ssh user@ip
3. Konfigurasi SSH
$ sudo nano /etc/ssh/sshd_config
ubah port 22 (mengganti port)
ubah PermitRootLogin menjadi no (disable root)
ubah PasswordAuthentication menjadi no (disable password)
4. Jalankan Daeman
$ sudo etc/init.d/ssh restart
5. Merubah Password Root
6. Membuat PublikKey
$ sudo su
#passwd
6. Membuat PublikKey
$ ssh-keygen -t RSA -C "coment untuk membedakan (bebas)"
7. Copy PublikKey ke server
$ ssh-copy-id -i ~/.ssh/id_rsa.pub user@ip -p(port)
0 komentar:
Posting Komentar