SilverWav's Journal

The best is yet to come…

Posts Tagged ‘ipv6

SSH Is Easy! Linux’s best kept secret.

leave a comment »

Read this first SSH: An Easier-Than-You-Thought Tutorial by Paul Arnote (parnote)

I had no problem with this:

ssh -l paul_lenovo 192.168.1.101

-l (small L) logs the listed computer as a trusted computer, and we only have to do this once (per remote machine, per local machine).

though to log-out I used “logout” not “~.”

Then…

ssh -v remote_account_name@remote_ip_address

…worked fine!

But…

ssh -v -X remote_account_name@remote_ip_address

gave me an error:

X11 forwarding request failed on channel 0

This turned out to be because IPv6 was disabled:

$ sysctl net.ipv6.conf.all.disable_ipv6
$ net.ipv6.conf.all.disable_ipv6 = 1

The easy answer was:

1) Adding the following to your sshd_config (/etc/ssh/sshd_config)
AddressFamily inet
2) Restart SSH

Hell Yeah!

Typed “thunar” and after a brief delay there was my remote file manager forwarded to my desktop.

Sheer magic.


Notes:

Ensure you have OpenSSH client and the OpenSSH server installed.

sudo nmap -sP 192.168.0.0/24 scans your network and lists all of your devices.

https://gist.github.com/adrianratnapala/1324845

http://www.gossamer-threads.com/lists/openssh/users/51998

http://pclosmag.com/html/Issues/201102/page18.html

Written by SilverWav

August 27, 2013 at 9:48 pm