Raspberry PI, Windows 7 and SSH
Shadow Hawkins on Friday, 17 April 2015 09:34:13
Hi people
I want control my Raspberry from Windows use SSH and Putty.
I have installed aiccu on Raspberry and Windows. Below are more details about
Raspberry
ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:29 errors:0 dropped:0 overruns:0 frame:0
TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2712 (2.6 KiB) TX bytes:2712 (2.6 KiB)
sit0 Link encap:IPv6-in-IPv4
inet6 addr: ::192.168.0.103/96 Scope:Compat
inet6 addr: ::127.0.0.1/96 Scope:Unknown
UP RUNNING NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
sixxs Link encap:IPv6-in-IPv4
inet6 addr: 2a02:578:5002:1db::2/64 Scope:Global
inet6 addr: fe80::c0a8:67/64 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1280 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:288 (288.0 B)
tun Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet6 addr: 2001:5c0:1400:a::2b1/128 Scope:Global
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1280 Metric:1
RX packets:659 errors:0 dropped:0 overruns:0 frame:0
TX packets:739 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:330996 (323.2 KiB) TX bytes:80670 (78.7 KiB)
wlan0 Link encap:Ethernet HWaddr c4:6e:1f:26:2b:a7
inet addr:192.168.0.103 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::c66e:1fff:fe26:2ba7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7821 errors:0 dropped:38 overruns:0 frame:0
TX packets:4628 errors:0 dropped:1 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2455232 (2.3 MiB) TX bytes:1098396 (1.0 MiB)
/etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
iface wlan0 inet dhcp
wireless essid any
wpa-driver wext
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan0
auto sixxs
iface sixxs inet6 v4tunnel
address 2a02:578:5002:1db::2
netmask 64
gateway 2a02:578:5002:1db::1
endpoint 77.109.111.178
ttl 64
mtu 1280
Raspberry has external IPV6 address
2001:5c0:1400:a::2b1
And internal IPV6 address
fe80::c66e:1fff:fe26:2ba7
And internal IPV4 address
192.168.0.103
Windows 7
When i started aiccu application
d:\Temp\2>aiccu-2012-02-02-windows-console.exe start
Trying to connect to TIC server tic.sixxs.net
sock_getline() : "200 SixXS TIC Service on nlhaa01.sixxs.net ready (http://www.
ixxs.net)"
sock_printf() : "client TIC/draft-00 AICCU/2012.02.02-win32 - WinNT/6.1.7601-S
1"
sock_getline() : "200 Client Identity accepted"
sock_printf() : "get unixtime"
sock_getline() : "200 1429209422"
sock_printf() : "username VLJ2-SIXXS"
sock_getline() : "200 VLJ2-SIXXS choose your authentication challenge please"
sock_printf() : "challenge md5"
sock_getline() : "200 xxxx"
sock_printf() : "authenticate md5 xxxxx"
sock_getline() : "200 Successfully logged in using md5 as VLJ2-SIXXS (Vladimir
ozhnikov)"
sock_printf() : "tunnel show T165291"
sock_getline() : "201 Showing tunnel information for T165291"
sock_getline() : "TunnelId: T165291"
sock_getline() : "Type: ayiya"
sock_getline() : "IPv6 Endpoint: 2a02:578:5002:1db::2"
sock_getline() : "IPv6 POP: 2a02:578:5002:1db::1"
sock_getline() : "IPv6 PrefixLength: 64"
sock_getline() : "Tunnel MTU: 1280"
sock_getline() : "Tunnel Name: My First Tunnel"
sock_getline() : "POP Id: ruled01"
sock_getline() : "IPv4 Endpoint: ayiya"
sock_getline() : "IPv4 POP: 77.109.111.178"
sock_getline() : "UserState: enabled"
sock_getline() : "AdminState: enabled"
sock_getline() : "Password: xxxxx"
sock_getline() : "Heartbeat_Interval: 60"
sock_getline() : "202 Done"
Successfully retrieved tunnel information for T165291
sock_printf() : "QUIT That's what I get"
Tunnel Information for T165291:
PoP Id : ruled01
IPv6 Local : 2a02:578:5002:1db::2/64
IPv6 Remote : 2a02:578:5002:1db::1/64
Tunnel Type : ayiya
Adminstate : enabled
Userstate : enabled
aiccu_setup(2a02:578:5002:1db::2, first)
Flag: HAS_IFHEAD not present
Flag: NEED_IFHEAD not present
Error opening registry key: SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E3
5-11CE-BFC1-08002BE10318}\Properties (t2)
Renaming adapter ' 2' to 'aiccu' and using it
aiccu_os_exec("netsh int set interface name=" 2" n
wname="aiccu"")
[tun-start] Trying \\.\Global\{29898C9D-B0A4-4FEF-BDB6-57A562022CEE}.tap
[tun-start] This is * 2, not the one we want
[tun-start] Trying \\.\Global\{2CAA64ED-BAA3-4473-B637-DEC65A14C8AA}.tap
[tun-start] This is * 8, not the one we want
[tun-start] Trying \\.\Global\{3C46B843-F5FC-4618-A7E5-782DFAE476C1}.tap
[tun-start] This is Bluetooth, not the one we want
[tun-start] Trying \\.\Global\{5701AE78-E4F3-41CB-8120-52E02C033D79}.tap
[tun-start] This is VMware Network Adapter VMnet1, not the one we want
[tun-start] Trying \\.\Global\{5BF54C7E-91DA-457D-80BF-333677D7E316}.tap
[tun-start] This is * 7, not the one we want
[tun-start] Trying \\.\Global\{71F897D7-EB7C-4D8D-89DB-AC80D9DD2270}.tap
[tun-start] This is *, not the one we want
[tun-start] Trying \\.\Global\{78032B7E-4968-42D3-9F37-287EA86C0AAA}.tap
[tun-start] This is * 10, not the one we want
[tun-start] Trying \\.\Global\{8E301A52-AFFA-4F49-B9CA-C79096A1A056}.tap
[tun-start] This is * 5, not the one we want
[tun-start] Trying \\.\Global\{989BF7D6-A0AA-41D1-BD57-E19076AA75E1}.tap
[tun-start] This is * 11, not the one we want
[tun-start] Trying \\.\Global\{9A399D81-2EAD-4F23-BCDD-637FC13DCD51}.tap
[tun-start] This is * 6, not the one we want
[tun-start] Trying \\.\Global\{A954ACF7-BD25-4AC9-805A-A1DCC4D8A7A4}.tap
[tun-start] This is aiccu, the one we want
[tun-start] TAP-Win32 Driver Version 9.9
aiccu_setup(2a02:578:5002:1db::2, other)
Flag: HAS_IFHEAD not present
Flag: NEED_IFHEAD not present
aiccu_os_exec("netsh int ipv6 6to4 set state disabled")
.
aiccu_os_exec("netsh int ipv6 set teredo disable")
.
aiccu_os_exec("netsh int ipv6 isatap set state state=disabled")
.
aiccu_os_exec("netsh int ipv6 set subinterface "aiccu" mtu=1280")
.
aiccu_os_exec("netsh int ipv6 add address "aiccu" 2a02:578:5002:1db::2")
aiccu_os_exec("netsh int ipv6 add route 2a02:578:5002:1db::2/64 aiccu")
.
aiccu_os_exec("netsh int ipv6 add route 0::/0 aiccu 2a02:578:5002:1db::1 publis
=yes")
.
aiccu_os_exec("netsh advfirewall firewall add rule name="AICCU: Allow incoming
CMPv6 echo request" protocol=icmpv6:8,any dir=in action=allow")
.
[AYIYA-start] : Anything in Anything (draft-02)
[AYIYA-tun->tundev] : (Socket to TUN) started
Windows has external IPV6 address same Raspberry Pi and internal IPV6 address
Ethernet adapter aiccu:
IPv6-. . . . . . . . . . . . : 2a02:578:5002:1db::2
local IPv6-address . . . : fe80::e45c:cb9c:67e:3f05%30
IPv4-address . . . . : 169.254.63.5
Netmask . . . . . . . . . . : 255.255.0.0
GAteway. . . . . . . . . : 2a02:578:5002:1db::1
IAID DHCPv6 . . . . . . . . . . . : 503381929
DUID DHCPv6 . . . . . . . : 00-01-00-01-1B-9E-0E-FA-74-D4-35-9F-2E-E1
DNS-. . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
Raspberry can ping local ipv6 address of Windows and vice versa.
But i can't connect from Windows to Raspberry using Putty application with any IPV6 address (local or external). I don't understand why?
Ideally i want connect from Windows to Raspberry with external IPV6 address, because within the local network i can make connect with local IPV4 address.
Is this possible have to different external IPV6 addresses for Windows and Raspberry? Because Raspberry can be anywhere (on the street or other country for example) and i need in solid connection to my device.
Thanks.
Raspberry PI, Windows 7 and SSH
Jeroen Massar on Friday, 17 April 2015 09:33:47 And internal IPV6 address fe80::c66e:1fff:fe26:2ba7 And internal IPV4 address 192.168.0.103
fe80::/10 is a link-local address. That thus is indeed "internal", but only valid for that link and cannot be routed. This while in IPv4 192.168.0.0./16 is an RFC1918 "private" address which can be routed over private space. Note that the equivalent for link-local in IPv4 is 169.254.0.0/16. See also Wikipedia on Link-Local Addresses
Windows 7 When i started aiccu application
You can't run the same tunnel on both your raspberry Pi and another host at the same time.
But i can't connect from Windows to Raspberry using Putty application with any IPV6 address (local or external). I don't understand why?
Because IP addresses have to be unique.
What you want to do is use the default routed subnet that comes with a tunnel and announce that to the local network. See "Using subnets" in the FAQ for the details.
Raspberry PI, Windows 7 and SSH
Shadow Hawkins on Friday, 17 April 2015 13:20:06
Thank you for reply. I'm sorry for my stupid questions. But i'm very newbe for network settings and routers and there are lost of information for me now. I want to understand the rulers and terminology.
Jeroen Massar wrote:
> And internal IPV6 address
fe80::c66e:1fff:fe26:2ba7 And internal IPV4 address 192.168.0.103
fe80::/10 is a link-local address. That thus is indeed "internal", but only valid for that link and cannot be routed. This while in IPv4 192.168.0.0./16 is an RFC1918 "private" address which can be routed over private space. Note that the equivalent for link-local in IPv4 is 169.254.0.0/16. See also Wikipedia on Link-Local Addresses
Windows 7 When i started aiccu application
You can't run the same tunnel on both your raspberry Pi and another host at the same time.
But i can't connect from Windows to Raspberry using Putty application with any IPV6 address (local or external). I don't understand why?
Because IP addresses have to be unique.
What you want to do is use the default routed subnet that comes with a tunnel and announce that to the local network. See "Using subnets" in the FAQ for the details.
Posting is only allowed when you are logged in. |