Jump to content

Konfigurasi SSH Ubuntu

From Wiki
Revision as of 20:48, 14 November 2022 by Kangtain (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Source: twimg.com

Connect to a server (default port 22)

ssh user@server

Uses a specific port declared in sshd_config

ssh user@server -p other_port

Runs a script on a remote server

ssh user@server script_to_run

Compresses and downloads from a remote server

ssh user@server "tar -cvzf - ~/source" > output.tgz

Specifies other ssh key for connection

ssh -i -/.ssh/specific_ssh_fkey