Last Updated:
cara remote server

Cara Mudah Remote Server

root
root

Untuk mempermudah dalam mengkonfigurasi server dari jauh, kita harus menginstall openssh-server pada sever dan juga komputer yang digunakan untuk me-remote.

Silahkan ketik saja didalam terminal sudo apt install openssh-server lalu ikuti instruksi yang diberikan. 

Untuk lebih jelasnya bisa melihat proses secara lengkap dibawah;

ludy@gnulinux:~$ sudo apt install openssh-server 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  ncurses-term openssh-sftp-server ssh-import-id
Suggested packages:
  molly-guard monkeysphere ssh-askpass
The following NEW packages will be installed:
  ncurses-term openssh-server openssh-sftp-server ssh-import-id
0 upgraded, 4 newly installed, 0 to remove and 3 not upgraded.
Need to get 688 kB of archives.
After this operation, 6.010 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://kartolo.sby.datautama.net.id/ubuntu focal/main amd64 ncurses-term all 6.2-0ubuntu2 [249 kB]
Get:2 http://kartolo.sby.datautama.net.id/ubuntu focal-updates/main amd64 openssh-sftp-server amd64 1:8.2p1-4ubuntu0.3 [51,5 kB]
Get:3 http://kartolo.sby.datautama.net.id/ubuntu focal-updates/main amd64 openssh-server amd64 1:8.2p1-4ubuntu0.3 [377 kB]
Get:4 http://kartolo.sby.datautama.net.id/ubuntu focal/main amd64 ssh-import-id all 5.10-0ubuntu1 [10,0 kB]
Fetched 688 kB in 1s (1.257 kB/s)        
Preconfiguring packages ...
Selecting previously unselected package ncurses-term.
(Reading database ... 494623 files and directories currently installed.)
Preparing to unpack .../ncurses-term_6.2-0ubuntu2_all.deb ...
Unpacking ncurses-term (6.2-0ubuntu2) ...
Selecting previously unselected package openssh-sftp-server.
Preparing to unpack .../openssh-sftp-server_1%3a8.2p1-4ubuntu0.3_amd64.deb ..
.
Unpacking openssh-sftp-server (1:8.2p1-4ubuntu0.3) ...
Selecting previously unselected package openssh-server.
Preparing to unpack .../openssh-server_1%3a8.2p1-4ubuntu0.3_amd64.deb ...
Unpacking openssh-server (1:8.2p1-4ubuntu0.3) ...
Selecting previously unselected package ssh-import-id.
Preparing to unpack .../ssh-import-id_5.10-0ubuntu1_all.deb ...
Unpacking ssh-import-id (5.10-0ubuntu1) ...
Setting up openssh-sftp-server (1:8.2p1-4ubuntu0.3) ...
Setting up openssh-server (1:8.2p1-4ubuntu0.3) ...

Creating config file /etc/ssh/sshd_config with new version
Creating SSH2 RSA key; this may take some time ...
3072 SHA256:/gZOvFy6JMgKDGilMz9UXT7NJFZsbWUGN2FWSkGOaYE root@gnulinux (RSA)
Creating SSH2 ECDSA key; this may take some time ...
256 SHA256:K4c7QwGnC3TElnab4DhavYsEsoc7u+NEbZN9pXNmTZI root@gnulinux (ECDSA)
Creating SSH2 ED25519 key; this may take some time ...
256 SHA256:vlHUCxRQJK9slws2q5AC/ctYwoV5ECqq0n02WKo3+Go root@gnulinux (ED25519
)
Created symlink /etc/systemd/system/sshd.service → /lib/systemd/system/ssh.se
rvice.
Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /li
b/systemd/system/ssh.service.
rescue-ssh.target is a disabled or a static unit, not starting it.
Setting up ssh-import-id (5.10-0ubuntu1) ...
Attempting to convert /etc/ssh/ssh_import_id
Setting up ncurses-term (6.2-0ubuntu2) ...
Processing triggers for systemd (245.4-4ubuntu3.13) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for ufw (0.36-6) ...
ludy@gnulinux:~$ 

Menarik bukan?

Nah, sekarang kita ketih ssh username@alamatipserver pada Terminal.

Sebagai contoh bisa dilihat dibawah;

ludy@gnulinux:~$ ssh ludy@192.168.1.5
The authenticity of host '192.168.1.5 (192.168.1.5)' can't be established.
ECDSA key fingerprint is SHA256:0W03Ld7nUfwnKNqy3RZ2aeEjbWMJAibBAiIgIU8sAd8.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.1.5' (ECDSA) to the list of known hosts.
ludy@192.168.1.5's password: 
Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-42-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage


384 updates can be installed immediately.
200 of these updates are security updates.
To see these additional updates run: apt list --upgradable


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.

ludy@server:~$ whoami
ludy

Keren lagi kan?

Nah, sekarang saya sudah berhasil login kedalam server. 

Memasang CMS WordPress Pada Server Ubuntu

Sekarang timbul pertanyaan, emang apa sih yang bisa kita lakuin di server tadi?

Ya banyak, mulai dari Managemen Inventory, Sharing Data antar komputer, sampai membuat website yang berjalan offline.

Nah, untuk tutorial selanjutnya akan kita bahas secara perlahan dan bertahap. 

Comments