wok diff openssh-pam/receipt @ rev 19494

linld: cooker doc link
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 14 08:55:24 2016 +0100 (2016-11-14)
parents 4ebd023252ac
children 46c0e137aff3
line diff
     1.1 --- a/openssh-pam/receipt	Fri Sep 09 12:06:28 2016 +0200
     1.2 +++ b/openssh-pam/receipt	Mon Nov 14 08:55:24 2016 +0100
     1.3 @@ -49,8 +49,17 @@
     1.4  	sed -i 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \
     1.5  		$fs/etc/ssh/sshd_config
     1.6  
     1.7 -	# client bug CVE-2016-0777 and CVE-2016-0778
     1.8 -	echo -e '\nHost *\n  UseRoaming no' >> $fs/etc/ssh/ssh_config
     1.9 +	cat >> $fs/etc/ssh/ssh_config <<EOT
    1.10 +
    1.11 +# client bug CVE-2016-0777 and CVE-2016-0778
    1.12 +Host *
    1.13 +  UseRoaming no
    1.14 +
    1.15 +# From https://wiki.gentoo.org/wiki/SSH_jump_host  
    1.16 +Host *+*
    1.17 +  ProxyCommand ssh $(echo %h | sed 's/+[^+]*$//;s/\([^+%%]*\)%%\([^+]*\)$/\2 -l \1/;s/:/ -p /') exec nc -w1 $(echo %h | sed 's/^.*+//;/:/!s/$/ %p/;s/:/ /')
    1.18 +
    1.19 +EOT
    1.20  }
    1.21  
    1.22  post_install()