Skip to content

Remote

REMOTE SSH

Generate an SSH Key

keygen

Terminal window
ssh-keygen -t rsa -b 4096

Copy the key to a server

Terminal window
ssh-copy-id username@ipserver

Test the new key

Terminal window
ssh -i ~/.ssh/id_rsa.pub username@ipserver

COPY FILE (SCP)

Berfungsi untuk copy file menggunakan SSH (seperti FTP)

Terminal window
scp file.sql root@192.168.100.2:file/share

source https://www.ssh.com/academy/ssh/copy-id#generate-an-ssh-key