diff --git a/sec/ex-6_iptables.adoc b/sec/ex-6_iptables.adoc index 3ded326..0c45916 100644 --- a/sec/ex-6_iptables.adoc +++ b/sec/ex-6_iptables.adoc @@ -205,8 +205,41 @@ Now try logging into the machine, with "ssh 'username@remoteserver'", and check ---- +=== run graphics applications remotely +X11 forwarding needs to be enabled on both the client side and the server side. +- On the client side, the -X (capital X) option to ssh enables X11 forwarding + +- On the server side, X11Forwarding yes must specified in /etc/ssh/sshd_config. + +- The xauth program must be installed on the server side. + + +[source,bash] +---- +ssh user@192.168.89.5 gimp +---- + +=== Copy Files and Directories Between Two Systems with scp + + +To copy a file from a local to a remote system run the following command: + +[source,bash] +---- +scp file.txt user@192.168.89.5:/remote/directory +---- + +=== Copy a Remote File to a Local System using the scp ommand + + +To copy a file named file.txt from a remote server with IP 192.168.89.5 run the following command: + +[source,bash] +---- +scp user@192.168.89.5:/remote/file.txt /local/directory +----