Kan*_*ane 4 mac ssh remote remote-access macos
我允许远程 ssh 登录到我的 Mac。但是,我只能在运行命令who时看到我的本地登录名。我确定远程会话已通过 ssh 登录我的 Mac。
localhost% who
kane console Jul 10 22:21
kane ttys000 Jul 10 22:21
kane ttys001 Jul 10 22:21
kane ttys002 Jul 10 22:21
kane ttys003 Jul 10 22:21
Run Code Online (Sandbox Code Playgroud)
在 linux 主机中,它通过以下命令登录我的 Mac,
user 12098 11413 0 21:01 ? 00:00:00 /usr/bin/ssh -L 27002:127.0.0.1:27002 -R 27002:127.0.0.1:27003 -q -N -o stricthostkeychecking=no -R 20008:localhost:6500 -R 20002:localhost:22 username@myhost.com
Run Code Online (Sandbox Code Playgroud)
但是在linux主机上,who命令可以列出ssh登录。如何在我的 Mac 中列出远程 ssh 登录?
user@ubuntu-server:~$ who
user tty1 2012-07-05 18:26
user pts/1 2012-07-23 22:10 (123.120.xxx.xxx)
Run Code Online (Sandbox Code Playgroud)
我没有 Mac 可以检查,但在 Unix 上通常还有更多命令可以显示谁已登录:
那么,也许其中一个尚未尝试过的(即 w,finger)可以正确地为您工作?如果没有,文章osx - 如何知道何时以及哪个用户登录系统中列出了更多的可能性,特别是对于 OSX 。
| 归档时间: |
|
| 查看次数: |
14747 次 |
| 最近记录: |