Content #
用命令在远程主机上安装openssh public key ssh拷贝文件,远程需要sudo 改变正在运行的sshd服务器的配置 ssh端口转发实例 ssh-keygen以默认方式生成密钥 将新主机添加到已知主机列表 通过SSH在远程主机上执行本地的脚本 Simplify Multi-Hop SSH Connections and Transparently Proxy SSH Connections
snippets #
Use Vim to Edit Files over the Network #
vim scp://linuxserver//home/json/notes.txt
vim sftp://linuxserver//home/json/notes.txt
Mount a Director from a Remote Server on Your Local Host via SSH #
sshfs remote-host:/directory mountpoint
fusermount -u mountpoint
Compare the Differences between a Remote and Local File #
ssh remote-host cat /path/to/remotefile | diff /path/to/localfile -
Encrypt Your Web Browsing Data with an SSH SOCKS Proxy #
ssh -ND 1080 remote-server
Configure your web browser to use a SOCKS 5 proxy using localhost