SSH with IPv6
Posted: Sat Jul 24, 2004 3:11 pm
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
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