From a9dc22e4dc47c9d1fdb5114a2426c78fa67f6606 Mon Sep 17 00:00:00 2001 From: Pu Du Date: Fri, 22 Jul 2016 17:45:18 -0500 Subject: [PATCH 1/4] ssh: add x11 forwarding --- pages/common/ssh.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/ssh.md b/pages/common/ssh.md index 66a23517d7..1550273d63 100644 --- a/pages/common/ssh.md +++ b/pages/common/ssh.md @@ -30,3 +30,7 @@ - SSH enable agent forward: `ssh -A {{username}}@{{remote_host}}` + +- SSH enable X11 forwarding: + +`ssh -X {{username}}@{{remote_host}}` From 19156aa83dcde2da459669d3f48d1fc8731e4684 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Tue, 18 Oct 2016 10:27:47 +0530 Subject: [PATCH 2/4] 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}}` From 452ba5f903c07b976b4093903611d6bd52ab35a6 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Tue, 18 Oct 2016 10:34:51 +0530 Subject: [PATCH 3/4] Fix linting error --- pages/common/ssh.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/common/ssh.md b/pages/common/ssh.md index 3daff9c6ac..6bd61af2fe 100644 --- a/pages/common/ssh.md +++ b/pages/common/ssh.md @@ -27,7 +27,6 @@ `ssh -L {{9999}}:slashdot.org:80 {{username}}@{{remote_host}}` -- Forward the authentication information to the remote machine by passing an -option (For full list of possible options, try `man ssh_config`): +- Forward the authentication information to the remote machine by passing an option (For full list of possible options, try `man ssh_config`): `ssh -o "ForwardAgent=yes" {{username}}@{{remote_host}}` From f862a8aec23d7c50c84c9162a84f9c9e100f3812 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Tue, 18 Oct 2016 13:01:23 +0530 Subject: [PATCH 4/4] ssh: shorten last description --- pages/common/ssh.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/ssh.md b/pages/common/ssh.md index 6bd61af2fe..4b8890e377 100644 --- a/pages/common/ssh.md +++ b/pages/common/ssh.md @@ -27,6 +27,6 @@ `ssh -L {{9999}}:slashdot.org:80 {{username}}@{{remote_host}}` -- Forward the authentication information to the remote machine by passing an option (For full list of possible options, try `man ssh_config`): +- Enable the option to forward the authentication information to the remote machine (see `man ssh_config` for available options): `ssh -o "ForwardAgent=yes" {{username}}@{{remote_host}}`