SSL通道代理远程mysql端口

使用本地端口代理远程mysql。
.

0

linux命令:ssh -T -N -L 23306:localhost:3306 root@mysql.domain.com root@mysql.domain.com 23306:localhost:3306 -L -N -T ssh ssh -T -N -L 23306:localhost:3306 root@mysql.domain.comrootopen.com
linux命令:ssh -T -N -L 23306:localhost:3306 root@mysql.domain.com root@mysql.domain.com 23306:localhost:3306 -L -N -T ssh ssh -T -N -L 23306:localhost:3306 root@mysql.domain.comrootopen.com
gqnu 2018-01-23 03:50:48
输出
linux命令:ssh 详解

评论

相关推荐

linux命令:ssh-keygen -y -f privatekey.pem > publickey.pem publickey.pem > privatekey.pem -f -y ssh-keygen ssh-keygen -y -f privatekey.pem > publickey.pemrootopen.com
linux命令:ssh-keygen -y -f privatekey.pem > publickey.pem publickey.pem > privatekey.pem -f -y ssh-keygen ssh-keygen -y -f privatekey.pem > publickey.pemrootopen.com
.

您可以通过对X应用程序的任何其他调用来执行此命令:xeyes&

linux命令:ssh -X servername servername -X ssh ssh -X servernamerootopen.com
linux命令:ssh -X servername servername -X ssh ssh -X servernamerootopen.com
.

我本地装有影梭, 默认带有socke5, 默认端口1080 mac上测试可以工作

linux命令:ssh -L 1080:127.0.0.1:1080 -i "11111.pem" ec2-user@ec2-13-230-30-2d7.ap-northeast-1.compute.amazonaws.com ec2-user@ec2-13-230-30-2d7.ap-northeast-1.compute.amazonaws.com "11111.pem" -i 1080:127.0.0.1:1080 -L ssh ssh -L 1080:127.0.0.1:1080 -i "11111.pem" ec2-user@ec2-13-230-30-2d7.ap-northeast-1.compute.amazonaws.comrootopen.com
linux命令:ssh -L 1080:127.0.0.1:1080 -i "11111.pem" ec2-user@ec2-13-230-30-2d7.ap-northeast-1.compute.amazonaws.com ec2-user@ec2-13-230-30-2d7.ap-northeast-1.compute.amazonaws.com "11111.pem" -i 1080:127.0.0.1:1080 -L ssh ssh -L 1080:127.0.0.1:1080 -i "11111.pem" ec2-user@ec2-13-230-30-2d7.ap-northeast-1.compute.amazonaws.comrootopen.com
.

linux命令:ssh -p 28511 root@172.93.47.106 root@172.93.47.106 28511 -p ssh ssh -p 28511 root@172.93.47.106rootopen.com
linux命令:ssh -p 28511 root@172.93.47.106 root@172.93.47.106 28511 -p ssh ssh -p 28511 root@172.93.47.106rootopen.com
.

ssh(SSH客户端)是一个远程访问和运行远程计算机上的命令的应用程序。它旨在通过不安全的网络(如Internet)在两个不受信任的主机之间提供安全的加密通信

linux命令:ssh tecmint@192.168.56.10 tecmint@192.168.56.10 ssh ssh tecmint@192.168.56.10rootopen.com
linux命令:ssh tecmint@192.168.56.10 tecmint@192.168.56.10 ssh ssh tecmint@192.168.56.10rootopen.com
.

这个计数正在运行的httpd进程的数量。

linux命令:ssh user@host "ps aux | grep httpd | wc -l" -l" wc | httpd grep | aux "ps user@host ssh ssh user@host "ps aux | grep httpd | wc -l"rootopen.com
linux命令:ssh user@host "ps aux | grep httpd | wc -l" -l" wc | httpd grep | aux "ps user@host ssh ssh user@host "ps aux | grep httpd | wc -l"rootopen.com
.

用于检查本地文件和远程文件是否存在差异。

linux命令:ssh user@host cat /path/to/remotefile | diff /path/to/localfile - - /path/to/localfile diff | /path/to/remotefile cat user@host ssh ssh user@host cat /path/to/remotefile | diff /path/to/localfile -rootopen.com
linux命令:ssh user@host cat /path/to/remotefile | diff /path/to/localfile - - /path/to/localfile diff | /path/to/remotefile cat user@host ssh ssh user@host cat /path/to/remotefile | diff /path/to/localfile -rootopen.com
.

linux命令:ssh somemachine "cd some dir; tar zcpf - somedirname" |tar zxpf - - zxpf |tar somedirname" - zcpf tar dir; some "cd somemachine ssh ssh somemachine "cd some dir; tar zcpf - somedirname" |tar zxpf -rootopen.com
linux命令:ssh somemachine "cd some dir; tar zcpf - somedirname" |tar zxpf - - zxpf |tar somedirname" - zcpf tar dir; some "cd somemachine ssh ssh somemachine "cd some dir; tar zcpf - somedirname" |tar zxpf -rootopen.com
.

如果您必须通过本地端口隧道SSH并且它抱怨主机密钥不同,那么这很有用。比手动编辑文件要容易得多。

linux命令:ssh-keygen -R \[localhost\]:8022 \[localhost\]:8022 -R ssh-keygen ssh-keygen -R \[localhost\]:8022rootopen.com
linux命令:ssh-keygen -R \[localhost\]:8022 \[localhost\]:8022 -R ssh-keygen ssh-keygen -R \[localhost\]:8022rootopen.com
.

linux命令:ssh-keygen -i -f $sshkeysfile >> authorized_keys authorized_keys >> $sshkeysfile -f -i ssh-keygen ssh-keygen -i -f $sshkeysfile >> authorized_keysrootopen.com
linux命令:ssh-keygen -i -f $sshkeysfile >> authorized_keys authorized_keys >> $sshkeysfile -f -i ssh-keygen ssh-keygen -i -f $sshkeysfile >> authorized_keysrootopen.com
.

linux命令:ssh-keygen -l -f [pubkey] | awk '{print $2}' | tr -ds ':' '' | egrep -ie "[a-f0-9]{32}" "[a-f0-9]{32}" -ie egrep | '' ':' -ds tr | $2}' '{print awk | [pubkey] -f -l ssh-keygen ssh-keygen -l -f [pubkey] | awk '{print $2}' | tr -ds ':' '' | egrep -ie "[a-f0-9]{32}"rootopen.com
linux命令:ssh-keygen -l -f [pubkey] | awk '{print $2}' | tr -ds ':' '' | egrep -ie "[a-f0-9]{32}" "[a-f0-9]{32}" -ie egrep | '' ':' -ds tr | $2}' '{print awk | [pubkey] -f -l ssh-keygen ssh-keygen -l -f [pubkey] | awk '{print $2}' | tr -ds ':' '' | egrep -ie "[a-f0-9]{32}"rootopen.com
.

从http://fuse.sourceforge.net/sshfs.html安装SSHFS将允许您通过网络安装文件夹安全性。

linux命令:sshfs name@server:/path/to/folder /path/to/mount/point /path/to/mount/point name@server:/path/to/folder sshfs sshfs name@server:/path/to/folder /path/to/mount/pointrootopen.com
linux命令:sshfs name@server:/path/to/folder /path/to/mount/point /path/to/mount/point name@server:/path/to/folder sshfs sshfs name@server:/path/to/folder /path/to/mount/pointrootopen.com
.

当hubmachine是唯一可以连接到目标机器(允许通过防火墙访问ip)并且您想从您的笔记本电脑访问它的机器时,这很方便。

linux命令:ssh -N -L2001:localhost:80 -o "ProxyCommand ssh someuser@hubmachine nc -w 5 %h %p" someuser@destinationmachine someuser@destinationmachine %p" %h 5 -w nc someuser@hubmachine ssh "ProxyCommand -o -L2001:localhost:80 -N ssh ssh -N -L2001:localhost:80 -o "ProxyCommand ssh someuser@hubmachine nc -w 5 %h %p" someuser@destinationmachinerootopen.com
linux命令:ssh -N -L2001:localhost:80 -o "ProxyCommand ssh someuser@hubmachine nc -w 5 %h %p" someuser@destinationmachine someuser@destinationmachine %p" %h 5 -w nc someuser@hubmachine ssh "ProxyCommand -o -L2001:localhost:80 -N ssh ssh -N -L2001:localhost:80 -o "ProxyCommand ssh someuser@hubmachine nc -w 5 %h %p" someuser@destinationmachinerootopen.com
.

来自exampleserver.com的Foward vnc安全

linux命令:ssh -L 5900:localhost:5900 user@exampleserver.com user@exampleserver.com 5900:localhost:5900 -L ssh ssh -L 5900:localhost:5900 user@exampleserver.comrootopen.com
linux命令:ssh -L 5900:localhost:5900 user@exampleserver.com user@exampleserver.com 5900:localhost:5900 -L ssh ssh -L 5900:localhost:5900 user@exampleserver.comrootopen.com
.

linux命令:ssh-copy-id username@hostname username@hostname ssh-copy-id ssh-copy-id username@hostnamerootopen.com
linux命令:ssh-copy-id username@hostname username@hostname ssh-copy-id ssh-copy-id username@hostnamerootopen.com
.

只需将您的Web浏览器的代理设置更改为指向端口8888处的SOCKS代理,即可开始使用。

linux命令:ssh -D 8888 user@site.com user@site.com 8888 -D ssh ssh -D 8888 user@site.comrootopen.com
linux命令:ssh -D 8888 user@site.com user@site.com 8888 -D ssh ssh -D 8888 user@site.comrootopen.com
.

linux命令:ssh -CNL 3306:localhost:3306 user@site.com user@site.com 3306:localhost:3306 -CNL ssh ssh -CNL 3306:localhost:3306 user@site.comrootopen.com
linux命令:ssh -CNL 3306:localhost:3306 user@site.com user@site.com 3306:localhost:3306 -CNL ssh ssh -CNL 3306:localhost:3306 user@site.comrootopen.com
.

你有没有必要scp文件到你的工作机器,以便将其内容复制到邮件中? xclip可以帮助你。它将stdin复制到X11缓冲区,所以您只需中键单击以粘贴该looong文件的内容:)

linux命令:ssh user@host cat /path/to/some/file | xclip xclip | /path/to/some/file cat user@host ssh ssh user@host cat /path/to/some/file | xcliprootopen.com
linux命令:ssh user@host cat /path/to/some/file | xclip xclip | /path/to/some/file cat user@host ssh ssh user@host cat /path/to/some/file | xcliprootopen.com
.

我在每天的cronjob上备份来自NearlyFreeSpeech.net的commandlinefu.com数据库(真棒主机)到我的本地驱动器。请注意(至少在我的Ubuntu系统上),您需要转义crontab上的%符号。

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

在存在标签式终端之前,人们一直在使用Gnu屏幕在单个文本终端中打开许多外壳。与ssh结合使用,您可以使用上述选项通过单个远程连接拥有多个打开的shell。如果使用“Ctrl-a d”进行分离,或者ssh会话意外终止,则远程shell中运行的所有进程将保持不受干扰,随时可供您重新连接。其他有用的屏幕命令是“Ctrl-a c”(打开新shell)和“Ctrl-a a”(在shell之间交替)。阅读此快速参考以获取更多屏幕命令:http://aperiodic.net/screen/quick_reference

linux命令:ssh -t user@some.domain.com /usr/bin/screen -xRR -xRR /usr/bin/screen user@some.domain.com -t ssh ssh -t user@some.domain.com /usr/bin/screen -xRRrootopen.com
linux命令:ssh -t user@some.domain.com /usr/bin/screen -xRR -xRR /usr/bin/screen user@some.domain.com -t ssh ssh -t user@some.domain.com /usr/bin/screen -xRRrootopen.com
.
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

推荐
    热门命令