在 ssh 网络中显示用户名?
我正在尝试 ssh 进入网络。当我到达那里时,它会提示我输入我输入的用户名的密码。但是,我不记得我的用户名。
有什么方法可以查看像这样的网络中列出的所有用户名吗?如果我能做到这一点,我就能弄清楚哪一个是我的。
I'm trying to ssh into a network. When I get there, it prompts me for the password to the username I had entered with it. However, I don't remember my username.
Is there any way perhaps to look at all the usernames listed within a network like this? If I can do that, I can figure out which one is mine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
默认情况下,ssh 将使用您运行它的帐户的用户名。例如,如果您以用户“xyz”登录计算机 A,则默认情况下,当您尝试通过 ssh 连接到计算机 B 时,它会将“用户名 = xyz”传输到计算机 B。
如果您想强制使用特定的用户名,请使用
如果您完全忘记了远程用户名,那么不... ssh 不会扫描远程系统并告诉您其上有哪些帐户。这将是一个极其糟糕的安全漏洞。
ssh by default will use the username of the account you're running it from. E.g. If you're logged into machine A as user 'xyz', then by default it'll transmit "username = xyz" to machine B when you try to ssh to it.
if you want to force a particular username, then use
If you've completely forgotten your remote username, then no... ssh will not scan the remote system and tell you what accounts are on it. That'd be a hideously BAD security hole.
我不完全确定你有什么和没有什么。如果您知道密码并已登录,则可以运行命令
whoami
来了解您的用户名。Im not completely sure what you have and what you don't. If you know the password and are logged in, you can run the command
whoami
to know your username.