2010-03-26 16:29:14 +01:00
|
|
|
Index: ssh_config
|
|
|
|
===================================================================
|
|
|
|
--- ssh_config.orig
|
2007-01-07 17:26:05 +01:00
|
|
|
+++ ssh_config
|
|
|
|
@@ -17,9 +17,20 @@
|
|
|
|
# list of available options, their meanings and defaults, please see the
|
|
|
|
# ssh_config(5) man page.
|
|
|
|
|
|
|
|
-# Host *
|
|
|
|
+Host *
|
|
|
|
# ForwardAgent no
|
|
|
|
# ForwardX11 no
|
|
|
|
+
|
|
|
|
+# If you do not trust your remote host (or its administrator), you
|
|
|
|
+# should not forward X11 connections to your local X11-display for
|
|
|
|
+# security reasons: Someone stealing the authentification data on the
|
|
|
|
+# remote side (the "spoofed" X-server by the remote sshd) can read your
|
|
|
|
+# keystrokes as you type, just like any other X11 client could do.
|
|
|
|
+# Set this to "no" here for global effect or in your own ~/.ssh/config
|
2011-01-31 13:24:57 +01:00
|
|
|
+# file if you want to have the remote X11 authentification data to
|
2007-01-07 17:26:05 +01:00
|
|
|
+# expire after two minutes after remote login.
|
|
|
|
+ForwardX11Trusted yes
|
|
|
|
+
|
|
|
|
# RhostsRSAAuthentication no
|
|
|
|
# RSAAuthentication yes
|
|
|
|
# PasswordAuthentication yes
|
2010-03-26 16:29:14 +01:00
|
|
|
Index: sshd_config
|
|
|
|
===================================================================
|
|
|
|
--- sshd_config.orig
|
2007-01-07 17:26:05 +01:00
|
|
|
+++ sshd_config
|
2011-01-31 13:24:57 +01:00
|
|
|
@@ -87,7 +87,7 @@
|
2008-07-25 04:29:14 +02:00
|
|
|
#AllowAgentForwarding yes
|
2007-01-07 17:26:05 +01:00
|
|
|
#AllowTcpForwarding yes
|
|
|
|
#GatewayPorts no
|
|
|
|
-#X11Forwarding no
|
2011-01-31 13:24:57 +01:00
|
|
|
+X11Forwarding yes
|
2007-01-07 17:26:05 +01:00
|
|
|
#X11DisplayOffset 10
|
|
|
|
#X11UseLocalhost yes
|
|
|
|
#PrintMotd yes
|
2010-03-26 16:29:14 +01:00
|
|
|
Index: sshlogin.c
|
|
|
|
===================================================================
|
|
|
|
--- sshlogin.c.orig
|
2007-01-07 17:26:05 +01:00
|
|
|
+++ sshlogin.c
|
2010-03-26 16:29:14 +01:00
|
|
|
@@ -133,6 +133,7 @@ record_login(pid_t pid, const char *tty,
|
2007-01-07 17:26:05 +01:00
|
|
|
|
|
|
|
li = login_alloc_entry(pid, user, host, tty);
|
|
|
|
login_set_addr(li, addr, addrlen);
|
|
|
|
+ li->uid=uid;
|
|
|
|
login_login(li);
|
|
|
|
login_free_entry(li);
|
|
|
|
}
|