从ps隐藏参数 [英] Hide arguments from ps
问题描述
我想保留我的ssh命令隐藏/伪装其他用户。
I would like to keep my ssh command hidden/disguised from other users.
示例:
ssh user@host -i /my/private/key
不幸的是,这将出现在ps列表中,其他用户将能够看到我使用的私钥文件。是否有办法解决这个问题?
Unfortunately this will come up in the ps listing and other users will be able to see the private key file that I am using. Is there a way around this?
(他们以与我同一个用户登录)
(They are logged in as the same user as I am)
推荐答案
如果他们以您的身份登录,基本上没有什么能阻止他们学习这些信息。如果您使用的是Linux,他们可以访问您的/ proc条目,并且可以轻松地了解此信息。
If they're logged in as you, there's basically little you can do to stop them from learning that information. If you're on Linux they'll have access to your /proc entries and can learn this information easily.
他们还可以:
- 删除您的所有文件。
- 以您的名义发送邮件侮辱您公司的CEO。
- 访问您的所有文件和命令行历史记录(如果有)。
- 多种其他内容。
- delete all your files.
- send mail in your name to insult the CEO of your company.
- access all your files and command line history, if any.
- myriad other things.
这不是保护自己的可行方法。您需要先解决相同的用户问题。
This is not a viable way to protect yourself. You need to sort out the identical user problem first.
这篇关于从ps隐藏参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!