From 19156aa83dcde2da459669d3f48d1fc8731e4684 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Tue, 18 Oct 2016 10:27:47 +0530 Subject: [PATCH] ssh: simplify page - Combined the last 2 commands into a single format that can be expanded upon by showing the -o option, since both can be passed as options. - This also does not increase the no. of examples. - Corrected a minor typo in path. --- pages/common/ssh.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pages/common/ssh.md b/pages/common/ssh.md index 1550273d63..3daff9c6ac 100644 --- a/pages/common/ssh.md +++ b/pages/common/ssh.md @@ -9,7 +9,7 @@ - Connect to a remote server with a specific identity (private key): -`ssh -i {{/path/to/key_file}} {{username}}@{{remote_host}}` +`ssh -i {{path/to/key_file}} {{username}}@{{remote_host}}` - Connect to a remote server using a specific port: @@ -27,10 +27,7 @@ `ssh -L {{9999}}:slashdot.org:80 {{username}}@{{remote_host}}` -- SSH enable agent forward: +- Forward the authentication information to the remote machine by passing an +option (For full list of possible options, try `man ssh_config`): -`ssh -A {{username}}@{{remote_host}}` - -- SSH enable X11 forwarding: - -`ssh -X {{username}}@{{remote_host}}` +`ssh -o "ForwardAgent=yes" {{username}}@{{remote_host}}`