2018-01-04 sshconf localcommand 的使用

PermitLocalCommand yes

LocalCommand ps -ef

上述两个药搭配使用。

you know what above command do ? It run on your local machine instead of the remote one ! :) !!

I was looking for something to execute a command on the machine I just login , but found nothing in ssh conf docs.
Maybe only login profile on each machine could help(save it in a nfs file).

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,448评论 0 10
  • The Inner Game of Tennis W Timothy Gallwey Jonathan Cape ...
    网事_79a3阅读 12,271评论 3 20
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,884评论 0 23
  • 在这一年里,换了好几份工作,当然也去转了不少地方,当时可能想的是我还年轻,有大把的时间去奋斗,但慢慢的到后来才...
    人情往事阅读 137评论 0 1
  • 如离开的第二天,下午四点,蓝也坐车离开,背着很重很重的包。 公交上,很拥挤,蓝挤在门口的位置,打开手机,朋友圈里发...
    原木C阅读 227评论 0 0