Jump to content

Konfigurasi SSH Ubuntu

From Wiki
Revision as of 11:14, 26 August 2022 by Kangtain (talk | contribs)
Error creating thumbnail: File missing
Source: twimg.com

Connect to a server (default port 22)<syntaxhighlight lang="shell"> ssh user@server </syntaxhighlight>Uses a specific port declared in sshd_config<syntaxhighlight lang="shell"> ssh user@server -p other_port </syntaxhighlight>Runs a script on a remote server<syntaxhighlight lang="shell"> ssh user@server script_to_run </syntaxhighlight>Compresses and downloads from a remote server<syntaxhighlight lang="shell"> ssh user@server "tar -cvzf - ~/source" > output.tgz </syntaxhighlight>Specifies other ssh key for connection<syntaxhighlight lang="shell"> ssh -i -/.ssh/specific_ssh_fkey </syntaxhighlight>