Install ssh di Ubuntu 20.04: Perbedaan antara revisi

Dari Dokumentasi Robie
Loncat ke navigasi Loncat ke pencarian
k (Melindungi "Install ssh di Ubuntu 20.04" ([Sunting=Hanya untuk pengurus] (selamanya) [Pindahkan=Hanya untuk pengurus] (selamanya)))
Tidak ada ringkasan suntingan
Baris 4: Baris 4:
  $sudo apt-get update
  $sudo apt-get update
  $sudo apt-get install openssh-server
  $sudo apt-get install openssh-server
$ sudo apt-get install openssh-server
[sudo] password for robie:
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following additional packages will be installed:
  openssh-client openssh-sftp-server
Suggested packages:
  keychain libpam-ssh monkeysphere ssh-askpass molly-guard
The following packages will be upgraded:
  openssh-client openssh-server openssh-sftp-server
3 upgraded, 0 newly installed, 0 to remove and 158 not upgraded.
Need to get 1100 kB of archives.
After this operation, 9216 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://id.archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-sftp-server amd64 1:8.2p1-4ubuntu0.9 [51.7 kB]
Get:2 http://id.archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-server amd64 1:8.2p1-4ubuntu0.9 [377 kB]
Get:3 http://id.archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-client amd64 1:8.2p1-4ubuntu0.9 [671 kB]
Fetched 1100 kB in 1min 47s (10.3 kB/s)                                       
Preconfiguring packages ...
(Reading database ... 73081 files and directories currently installed.)
Preparing to unpack .../openssh-sftp-server_1%3a8.2p1-4ubuntu0.9_amd64.deb ...
Unpacking openssh-sftp-server (1:8.2p1-4ubuntu0.9) over (1:8.2p1-4ubuntu0.7) ...
Preparing to unpack .../openssh-server_1%3a8.2p1-4ubuntu0.9_amd64.deb ...
Unpacking openssh-server (1:8.2p1-4ubuntu0.9) over (1:8.2p1-4ubuntu0.7) ...
Preparing to unpack .../openssh-client_1%3a8.2p1-4ubuntu0.9_amd64.deb ...
Unpacking openssh-client (1:8.2p1-4ubuntu0.9) over (1:8.2p1-4ubuntu0.7) ...
Setting up openssh-client (1:8.2p1-4ubuntu0.9) ...
Setting up openssh-sftp-server (1:8.2p1-4ubuntu0.9) ...
Setting up openssh-server (1:8.2p1-4ubuntu0.9) ...
rescue-ssh.target is a disabled or a static unit, not starting it.
Processing triggers for systemd (245.4-4ubuntu3.17) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for ufw (0.36-6ubuntu1) ...
robie@robie:~$




Restart
Restart
  /etc/init.d/ssh restart
  /etc/init.d/ssh restart

Revisi per 19 September 2023 06.31

Anggap saja kita baru pertama kali menginstall sistem operasi linux dan belum melakukan konfigurasi apa-apa setelah berhasil melakukan install. SSH (Secure Shell) sendiri adalah protocol yang digunakan untuk melakukan remote server yang menggunakan ip address dan aplikasi ssh sebagai akses masuknya. Untuk melakukan instalasi SSH dapat melakukan perintah berikut:

Install

$sudo apt-get update
$sudo apt-get install openssh-server


$ sudo apt-get install openssh-server
[sudo] password for robie: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  openssh-client openssh-sftp-server
Suggested packages:
  keychain libpam-ssh monkeysphere ssh-askpass molly-guard
The following packages will be upgraded:
  openssh-client openssh-server openssh-sftp-server
3 upgraded, 0 newly installed, 0 to remove and 158 not upgraded.
Need to get 1100 kB of archives.
After this operation, 9216 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://id.archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-sftp-server amd64 1:8.2p1-4ubuntu0.9 [51.7 kB]
Get:2 http://id.archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-server amd64 1:8.2p1-4ubuntu0.9 [377 kB]
Get:3 http://id.archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-client amd64 1:8.2p1-4ubuntu0.9 [671 kB]
Fetched 1100 kB in 1min 47s (10.3 kB/s)                                        
Preconfiguring packages ...
(Reading database ... 73081 files and directories currently installed.)
Preparing to unpack .../openssh-sftp-server_1%3a8.2p1-4ubuntu0.9_amd64.deb ...
Unpacking openssh-sftp-server (1:8.2p1-4ubuntu0.9) over (1:8.2p1-4ubuntu0.7) ...
Preparing to unpack .../openssh-server_1%3a8.2p1-4ubuntu0.9_amd64.deb ...
Unpacking openssh-server (1:8.2p1-4ubuntu0.9) over (1:8.2p1-4ubuntu0.7) ...
Preparing to unpack .../openssh-client_1%3a8.2p1-4ubuntu0.9_amd64.deb ...
Unpacking openssh-client (1:8.2p1-4ubuntu0.9) over (1:8.2p1-4ubuntu0.7) ...
Setting up openssh-client (1:8.2p1-4ubuntu0.9) ...
Setting up openssh-sftp-server (1:8.2p1-4ubuntu0.9) ...
Setting up openssh-server (1:8.2p1-4ubuntu0.9) ...
rescue-ssh.target is a disabled or a static unit, not starting it.
Processing triggers for systemd (245.4-4ubuntu3.17) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for ufw (0.36-6ubuntu1) ...
robie@robie:~$ 


Restart

/etc/init.d/ssh restart