SSH with IPv6

Computer builds, hardware and software discussion or troubleshooting, including peripherals. Essentially a general place to talk about desktop computers.
Locked
Anonymous

SSH with IPv6

Post by Anonymous »

Hi
i just started configuring a small network at home with IPv6.
Basically, only 3 computers with linux kernel 2.6.7 , the process of
enabling the kernel to IPv6 was easy. The next step was to test the new network,
some simple commands like ping6 and tcpdump verified that the network works.
The next step i tried is to make the sshd to run through the IPv6 address. Although i thought that
everything was undercontrol i was mistaken.
1. I configured the /etc/ssh/sshd_config file
Port 22
ListenAddress ::

2. Then i went to the sshd auto startup service script and added the -6
/etc/rc.d/init.d/sshd

#########################
######old lines#############
#########################
SSHD=/usr/sbin/sshd
....
....
start()
{
do_rsa1_keygen
do_rsa_keygen
do_dsa_keygen

echo -n $"Starting $prog:"
initlog -c "$SSHD $OPTIONS" && success || failure
RETVAL=$?
[ "$RETVAL" = 0 ] && touch /var/lock/subsys/sshd
echo
}
###################



#########################
######new lines#############
#########################
SSHD=/usr/sbin/sshd
....
....
start()
{
do_rsa1_keygen
do_rsa_keygen
do_dsa_keygen

echo -n $"Starting $prog:"
initlog -c "$SSHD -6 $OPTIONS" && success || failure
RETVAL=$?
[ "$RETVAL" = 0 ] && touch /var/lock/subsys/sshd
echo
}
###################

3. Then i restarted the service and tried to connect
service sshd stop
service sshd start

ssh -6 <my local link IPv6 address>
erro msg: ssh: connect to host <my IPv6 address> port 22: Invalid argument

4. i tried to see if it was listening.
netstat -A inet6 -ln | grep 22
tcp 0 0 :::22 :::* LISTEN

Any ideas?
Thanks

Archived topic from Iceteks, old topic ID:2508, old post ID:21000
Anonymous

SSH with IPv6

Post by Anonymous »

I found the solution
I installed a Site-local address and it is working perfectly
ifocnfig eth1 add fec0::1/64
:blink:

Archived topic from Iceteks, old topic ID:2508, old post ID:21012
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

SSH with IPv6

Post by Red Squirrel »

Glad you found it, and welcome to the forum. I'm a linux noob so figured I would not attempt to help in case I make you screw up something. :lol:

Archived topic from Iceteks, old topic ID:2508, old post ID:21014
Honk if you love Jesus, text if you want to meet Him!
Locked