Konfigurasi SSH Ubuntu
Appearance
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>