I would like to keep my ssh command hidden/disguised from other users.
Example:
ssh user@host -i /my/private/key
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)
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.
They can also:
This is not a viable way to protect yourself. You need to sort out the identical user problem first.