Difference between revisions of "Talk:Secure Shell"

From ArchWiki
Jump to: navigation, search
(Automatically logout all SSH users when the sshd daemon is shutdown.: new section)
(12 intermediate revisions by 7 users not shown)
Line 3: Line 3:
 
"Enable the ForwardX11 option in ssh_config on the client."
 
"Enable the ForwardX11 option in ssh_config on the client."
  
simply specifing -X option to ssh works for me.
+
simply specifing -X option to ssh works for me. [The preceding unsigned comment was added 2010-01-11T15:41:54 by [[User:Uwinkelvos|Uwinkelvos]] ([[User_talk:Uwinkelvos|Talk]] | [[Special:Contributions/Uwinkelvos|contribs]]).]
 +
 
 +
== SendEnv ==
 +
 
 +
I think we should add something about accent/UTF-8/encoding.
 +
Setting SendEnv LANG LC_*  in /etc/ssh/ssh_config (client side) would be very useful.
 +
 
 +
== Encrypted Socks Tunnel ==
 +
 
 +
It would be good to add how to configure chromium to use with the socks tunnel. I recommend this:
 +
 
 +
Add to your .bashrc the next lines:
 +
 
 +
    function unblock() {
 +
        port=4711
 +
        export SOCKS_SERVER=localhost:$port
 +
        export SOCKS_VERSION=5
 +
        chromium &
 +
    }
 +
 
 +
So, the next time you want to use chromium with the secure tunnel,
 +
 
 +
  $ unblock
 +
 
 +
== Automatically logout all SSH users when the sshd daemon is shutdown. ==
 +
 
 +
edit /lib/systemd/system/systemd-user-sessions.service and append network.target to the after line.
 +
 
 +
 
 +
[Unit]
 +
Description = Permit User Sessions
 +
 
 +
Documentation = man:systemd-user-sessions.service(8)
 +
 
 +
After = network.target remote-fs.target
 +
 
 +
 
 +
then symlink /lib/systemd/system/systemd-user-sessions.service to /etc/systemd/system/
 +
 
 +
 
 +
[[User:Artomason|artomason]] ([[User talk:Artomason|talk]]) 20:32, 7 February 2013 (UTC)

Revision as of 20:32, 7 February 2013

regarding X11 forwarding: i don't think it is necessary to enable X11Forwarding on the client on a global base: "Enable the ForwardX11 option in ssh_config on the client."

simply specifing -X option to ssh works for me. [The preceding unsigned comment was added 2010-01-11T15:41:54 by Uwinkelvos (Talk | contribs).]

SendEnv

I think we should add something about accent/UTF-8/encoding. Setting SendEnv LANG LC_* in /etc/ssh/ssh_config (client side) would be very useful.

Encrypted Socks Tunnel

It would be good to add how to configure chromium to use with the socks tunnel. I recommend this:

Add to your .bashrc the next lines:

   function unblock() {
       port=4711
       export SOCKS_SERVER=localhost:$port
       export SOCKS_VERSION=5
       chromium &
   }

So, the next time you want to use chromium with the secure tunnel,

  $ unblock

Automatically logout all SSH users when the sshd daemon is shutdown.

edit /lib/systemd/system/systemd-user-sessions.service and append network.target to the after line.


[Unit] Description = Permit User Sessions

Documentation = man:systemd-user-sessions.service(8)

After = network.target remote-fs.target


then symlink /lib/systemd/system/systemd-user-sessions.service to /etc/systemd/system/


artomason (talk) 20:32, 7 February 2013 (UTC)