wok-next diff openssh/receipt @ rev 19487
Up svgcleaner (0.7.1 release)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Nov 06 04:53:59 2016 +0200 (2016-11-06) |
parents | 4ebd023252ac |
children | 8f50006d2661 |
line diff
1.1 --- a/openssh/receipt Fri Sep 09 12:06:28 2016 +0200 1.2 +++ b/openssh/receipt Sun Nov 06 04:53:59 2016 +0200 1.3 @@ -50,8 +50,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()