Configuring SSH
Enabling SSH agents and forwarding
Edit the ssh configue file
$sudo vi /etc/ssh_config
Enable the following options:
Host *
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
GSSAPIAuthentication yes
Disclaimer: In some OS the ssh configuration file location may change please consult your OS for details.
More information about ssh in multiple OS can be found here SSH Forwarding guide