vim, gitconfig, update.sh
[dotfiles_afify.git] / .scripts / copy_conf_to_pi.sh
blob85849bfb5023a0a859ea65583e44054ff9c1ee7f
1 #!/usr/bin/env bash
3 ssh tim "DISPLAY=:0 nohup firefox"
4 oli@bert:~$ ssh tim
5 oli@tim:~$ export DISPLAY=:0
6 oli@tim:~$ firefox
7 ssh -X username@host.com
9 # https://stribika.github.io/2015/01/04/secure-secure-shell.html
10 # # get ip
11 # # array of files
12 # sudo netstat -tnpa | grep 'ESTABLISHED.*ssh'
13 # ss | grep -i ssh # remote
14 # last -a | grep -i still # loged in my computer
15 # ssh hassan@alarmpi
16 # who
17 # w
18 # ps auxwww | grep sshd: | grep -v grep
19 # netstat -tnpa | grep 'ESTABLISHED.*sshd'
20 # ps auxwww | grep sshd:
21 # last | grep "still logged in"
22 # who -a
23 # ps auxwww | grep sftp
24 # chmod 400 ~/.ssh/authorized_keys
25 # PermitRootLogin no
28 # file=.vimrc
29 # # .bashrc
30 # # ~/.vim
31 # # ~/.vimrc
32 # # .git-prompt.sh
33 # # .git-completion.bash
35 # user=pi
36 # ip=192.168.100.49
37 # distination=/home/${user}/receive/
40 # scp -r ${file} ${user}@${ip}:${distination}