2
1

openssh.patch 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. --- openssh-3.6.1p1/Makefile.in.orig 2003-03-20 17:34:34.000000000 -0700
  2. +++ openssh-3.6.1p1/Makefile.in 2003-04-25 17:09:00.000000000 -0600
  3. @@ -27,7 +27,7 @@
  4. RAND_HELPER=$(libexecdir)/ssh-rand-helper
  5. PRIVSEP_PATH=@PRIVSEP_PATH@
  6. SSH_PRIVSEP_USER=@SSH_PRIVSEP_USER@
  7. -STRIP_OPT=@STRIP_OPT@
  8. +STRIP_OPT=
  9. PATHS= -DSSHDIR=\"$(sysconfdir)\" \
  10. -D_PATH_SSH_PROGRAM=\"$(SSH_PROGRAM)\" \
  11. --- openssh-3.6.1p1/S50sshd Fri Sep 27 05:21:58 2002
  12. +++ openssh-3.6.1p1/S50sshd Mon Mar 17 14:55:00 2003
  13. @@ -0,0 +1,64 @@
  14. +#!/bin/sh
  15. +#
  16. +# sshd Starts sshd.
  17. +#
  18. +
  19. +# Make sure the ssh-keygen progam exists
  20. +[ -f /usr/bin/ssh-keygen ] || exit 0
  21. +
  22. +# Check for the SSH1 RSA key
  23. +if [ ! -f /etc/ssh_host_key ] ; then
  24. + echo Generating RSA Key...
  25. + /usr/bin/ssh-keygen -t rsa1 -f /etc/ssh_host_key -C '' -N ''
  26. +fi
  27. +
  28. +# Check for the SSH2 RSA key
  29. +if [ ! -f /etc/ssh_host_rsa_key ] ; then
  30. + echo Generating RSA Key...
  31. + /usr/bin/ssh-keygen -t rsa -f /etc/ssh_host_rsa_key -C '' -N ''
  32. +fi
  33. +
  34. +# Check for the SSH2 DSA key
  35. +if [ ! -f /etc/ssh_host_dsa_key ] ; then
  36. + echo Generating DSA Key...
  37. + echo THIS CAN TAKE A MINUTE OR TWO DEPENDING ON YOUR PROCESSOR!
  38. + echo
  39. + /usr/bin/ssh-keygen -t dsa -f /etc/ssh_host_dsa_key -C '' -N ''
  40. +fi
  41. +
  42. +umask 077
  43. +
  44. +start() {
  45. + echo -n "Starting sshd: "
  46. + /usr/sbin/sshd
  47. + touch /var/lock/sshd
  48. + echo "OK"
  49. +}
  50. +stop() {
  51. + echo -n "Stopping sshd: "
  52. + killall sshd
  53. + rm -f /var/lock/sshd
  54. + echo "OK"
  55. +}
  56. +restart() {
  57. + stop
  58. + start
  59. +}
  60. +
  61. +case "$1" in
  62. + start)
  63. + start
  64. + ;;
  65. + stop)
  66. + stop
  67. + ;;
  68. + restart|reload)
  69. + restart
  70. + ;;
  71. + *)
  72. + echo $"Usage: $0 {start|stop|restart}"
  73. + exit 1
  74. +esac
  75. +
  76. +exit $?
  77. +
  78. --- openssh-4.6p1.oorig/sshd_config 2006-07-24 06:06:47.000000000 +0200
  79. +++ openssh-4.6p1/sshd_config 2007-06-28 15:58:49.000000000 +0200
  80. @@ -11,7 +11,7 @@
  81. # default value.
  82. #Port 22
  83. -#Protocol 2,1
  84. +Protocol 2
  85. #AddressFamily any
  86. #ListenAddress 0.0.0.0
  87. #ListenAddress ::
  88. @@ -83,9 +83,11 @@
  89. #AllowTcpForwarding yes
  90. #GatewayPorts no
  91. #X11Forwarding no
  92. +X11Forwarding yes
  93. #X11DisplayOffset 10
  94. #X11UseLocalhost yes
  95. #PrintMotd yes
  96. +PrintMotd no
  97. #PrintLastLog yes
  98. #TCPKeepAlive yes
  99. #UseLogin no
  100. @@ -102,8 +104,12 @@
  101. # no default banner path
  102. #Banner /some/path
  103. +ClientAliveInterval 15
  104. +ClientAliveCountMax 4
  105. +AcceptEnv LANG LC_*
  106. +
  107. # override default of no subsystems
  108. -Subsystem sftp /usr/libexec/sftp-server
  109. +Subsystem sftp /usr/sbin/sftp-server
  110. # Example of overriding settings on a per-user basis
  111. #Match User anoncvs