aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pass/README.alpine
blob: fffbb1bbf97c8c2d29485e2be4fc59a4710b41d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Alpine Linux README: Password Store #
---------------------------------------

Notes for making the clipboard work for root over ssh:
------------------------------------------------------

(1) apk add xauth xclip

(2) On your LOCAL machine add to ~/.ssh/config:

host xxxxxxx
  ForwardX11 yes
  ForwardX11Trusted yes

(3) In the REMOTE USER ~/.profile add:

  echo "$DISPLAY" > ~/.display

(4) In the REMOTE ROOT ~/.profile add:

  export DISPLAY=$(cat /home/login-user/.display)

(5) file=/home/login-user/.Xauthority
    touch $file
    chmod 0600 $file
    chown user:user $file
    ln -s $file /root/.Xauthority

(6) In the REMOTE ROOT ~/.profile add:

  # fix tty ownership for pinentry after su -
  chown root $(tty)
  export GPG_TTY=$(tty)