ssh 远程执行命令 -t

# ssh -p22022 -t 122.16.67.116 ls -l /root/.ssh
total 12
-rw-r--r-- 1 root root 1176 Jan 24 22:15 authorized_keys
-rw------- 1 root root 1675 Nov 11 20:41 id_rsa
-rw-r--r-- 1 root root 3625 Oct 25 18:50 known_hosts
Connection to 112.126.67.115 closed.

 

posted @ 2017-01-24 22:21  bass  阅读(393)  评论(0)    收藏  举报