💻 OpenSSH
sudov /etc/ssh/sshd_config
++ PermitRootLogin no
sudo tail -n 50 /var/log/auth.log
ssh -p 22 user@192.168.254.x
[Enter Password]
apt-get install sshpass
sshpass -p your_password ssh user@192.168.254.x
Script it
gpg --full-generate-key
mkdir $HOME/.passcrypt
vim ssh (create password file)
gpg --encrypt $HOME/.passcrypt/ssh.gpg
#!/bin/bash sshpassw="$(gpg -d $HOME/.passcrypt/ssh.gpg |)" sshpass -p $sshpassw ssh user@192.168.254.x
From Remote to local
scp username@b:/path/to/file /path/to/destination
From local to remote
scp /path/to/file username@b:/path/to/destination
scp -prq username@host:/path/to/file/ /path/to/destination/
scp -prq /path/to/file/ username@host:/path/to/destination/
Setup
export DISPLAY:=0
Send keyboard keys to GUI apps
xdotool key --window "$(xdotool search --class mpv)" p
mkdir /mnt/destination
sshfs user@host:/source /mnt/destination
cd /mnt/destination
mkdir /mnt/destination
sshfs /source user@host:/destination
cd /mnt/destination
Dolphin File Browser:
fish://user@xxx.xxx.xxx
MC:
cd sh://user@xxx.xxx.xxx
Similar to Secure FTP
Edit files with VSCode, etc.
Powershell
winget install WinFsp.WinFsp; winget install SSHFS-Win.SSHFS-Win
Links to projects below
ssh-keygen -t rsa -b 4096 -C "your_email@domain.com" #username@reminder.com
- Press enter for all entries
ssh-copy-ide remote@remotesystem
eval $(ssh-agent)
ussh-add
OR:
ssh-add /home/user/.ssh/id_(...)
OR
ssh-add /home/user/.ssh/id_superdupersshkey
Enter
password
vim
(ornano
)~/.profile
eval "$(ssh-agent)"
For persistence between logins
Total Commander: Cross-platform file manager
Android file manager with option for secure FTP (SSH) (plugin)