Ftp

copy with ssh
https://unix.stackexchange.com/questions/2857/ssh-easily-copy-file-to-local-system
 * 1) to remote host

cat localfile.conf | ssh user@hostname 'cat -> /tmp/remotefile.conf'


 * 1) from remote host

ssh user@hostname 'cat /tmp/remotefile.conf' > /tmp/localfile.conf

cat script.sh | ssh jm@192.168.1.21 'cat > /home/jm/script1.sh'

no passwd
http://nerd-hacking.blogspot.com/2006/05/how-to-set-up-ssh-keys-for-linux.html

Keep link alive
https://stackoverflow.com/questions/25084288/keep-ssh-session-alive

https://unix.stackexchange.com/questions/89483/keeping-a-process-running-after-putty-or-terminal-has-been-closed/89487#89487

https://linux.101hacks.com/unix/nohup-command/

tut
https://dev.to/zduey/how-to-set-up-an-ssh-server-on-a-home-computer

vsftpd
https://help.ubuntu.com/lts/serverguide/ftp-server.html#vsftpd-ftp-server-installation

http://pctechtips.org/how-to-login-into-ssh-without-getting-prompt-for-password/

sshf
commandlinefu sshf mount any remote directory on local file

sshfs -o workaround=all -o nonempty root@192.168.1.201:/home/ftp/sdcard/Camera1/2018-02-08 /home/j/j

fusermount -u /home/j/j #for unmounting

ssh-copy-id username@hostname # Copy your SSH public key on a remote machine for passwordless login - the easy way

ssh keys
http://www.linuxproblem.org/art_9.html ssh without having to input password for remote machine access.

ssh-keygen -t rsa #press enter for any passphrases asked

a@A ssh b@192.168.1.12 mkdir -p /home/.ssh

b@B's password: Finally append a's new public key to b@B:.ssh/authorized_keys and enter b's password one last time:

a@A:  cat .ssh/id_rsa.pub | ssh b@192.168.1.12 'cat >> .ssh/authorized_keys'

http://www.commandlinefu.com/commands/view/979/backup-a-remote-database-to-your-local-filesystem

ssh user@host 'mysqldump dbname | gzip' > /path/to/backups/db-backup-`date +%Y-%m-%d`.sql.gz

Backup a remote database to your local filesystem

ssh connection refused
https://stackoverflow.com/questions/20840012/ssh-remote-host-identification-has-changed

ssh-keygen -R 192.168.3.10

scp
https://www.garron.me/en/articles/scp.html

scp /home/vids/*.mp4    j@192.168.1.12:/home/j/vids

copy from this pc to remote pc, assumes both pc's using the defualt ssh port 22.

scp -C -P 200 /home/vids/*.mp4      j@192.168.1.12:/home/j/vids

Specifies other port to use than default  C enables compression

scp -r -C -P 200 /home/vids/      j@192.168.1.12:/home/j/vids

copy folder contents recursively

folder created at /srv/ftp

https://stackoverflow.com/questions/4994638/one-line-ftp-server-in-python

arp scan
https://superuser.com/questions/261818/how-can-i-list-all-ips-in-the-connected-network-through-terminal-preferably

links
Rsync