通过 telnet 与 mac osx sierra 建立连接
make connection by telnet with mac osx sierra
我正在尝试连接到 cisco 实验室,但我发现 mac sierra 不再有 telnet 客户端。终端报错如下:
[Command not found: telnet]
[Could not create a new process and open a pseudo-tty.]
我做的第一件事是安装最新版本的 xcode 然后用自制软件安装 telnet 但我仍然无法连接到实验室。然后我找到了一个可能的答案:
If you restore telnet via brew or something else you have to put the telnet application into the /usr/bin directory. If it isn't there the telnet URLs when calling terminal will be broken.
However... the /usr/bin directory is locked with SIP (System Integrity Protection). You need to disable SIP in order to modify the /usr/bin directory.
Reboot your mac... before the apple logo appears hit CMD+r. select "Utilities" then "Terminal". Type "csrutil disable" at the command line. then reboot normally. Place the telnet application in the /usr/bin directory. Then reenable SIP by doing the steps above but using "csrutil enable"
我按照步骤操作,但我不知道我需要移动到 usr/bin 的确切文件。我不是这个主题的专家,所以尝试找到带有 sudo find / -name telnet
的文件并找到以下内容:
/usr/local/bin/telnet
/usr/local/var/homebrew/linked/telnet
/usr/local/opt/telnet
/usr/local/Cellar/telnet
/usr/local/Cellar/telnet/54.50.1/bin/telnet
/Library/Ruby/Gems/2.3.0/gems/net-telnet-0.1.1/lib/net/telnet
/Users/joseandradecruz/Library/Logs/Homebrew/telnet
我尝试使用 usr/local/bin/telnet
中的第一个文件,但没有成功
禁用 SIP 后,您可以在 /usr/bin/
中添加指向 /usr/local/bin/telnet
的符号链接:
sudo ln -s /usr/local/bin/telnet /usr/bin/
您实际上不需要将 telnet 移动到 /usr/bin
文件夹中。对于路径中没有 /usr/local/bin
的应用程序,符号链接提供访问权限,就像文件在那里一样。
我在使用 Cisco LAB 或 eve-ng 时也遇到了 lunch telnet 问题。
*禁用 sip -> ln telnet 到 /usr/bin -> 启用 sip
下蛋愉快:)
我正在尝试连接到 cisco 实验室,但我发现 mac sierra 不再有 telnet 客户端。终端报错如下:
[Command not found: telnet]
[Could not create a new process and open a pseudo-tty.]
我做的第一件事是安装最新版本的 xcode 然后用自制软件安装 telnet 但我仍然无法连接到实验室。然后我找到了一个可能的答案:
If you restore telnet via brew or something else you have to put the telnet application into the /usr/bin directory. If it isn't there the telnet URLs when calling terminal will be broken. However... the /usr/bin directory is locked with SIP (System Integrity Protection). You need to disable SIP in order to modify the /usr/bin directory. Reboot your mac... before the apple logo appears hit CMD+r. select "Utilities" then "Terminal". Type "csrutil disable" at the command line. then reboot normally. Place the telnet application in the /usr/bin directory. Then reenable SIP by doing the steps above but using "csrutil enable"
我按照步骤操作,但我不知道我需要移动到 usr/bin 的确切文件。我不是这个主题的专家,所以尝试找到带有 sudo find / -name telnet
的文件并找到以下内容:
/usr/local/bin/telnet
/usr/local/var/homebrew/linked/telnet
/usr/local/opt/telnet
/usr/local/Cellar/telnet
/usr/local/Cellar/telnet/54.50.1/bin/telnet
/Library/Ruby/Gems/2.3.0/gems/net-telnet-0.1.1/lib/net/telnet
/Users/joseandradecruz/Library/Logs/Homebrew/telnet
我尝试使用 usr/local/bin/telnet
中的第一个文件,但没有成功
禁用 SIP 后,您可以在 /usr/bin/
中添加指向 /usr/local/bin/telnet
的符号链接:
sudo ln -s /usr/local/bin/telnet /usr/bin/
您实际上不需要将 telnet 移动到 /usr/bin
文件夹中。对于路径中没有 /usr/local/bin
的应用程序,符号链接提供访问权限,就像文件在那里一样。
我在使用 Cisco LAB 或 eve-ng 时也遇到了 lunch telnet 问题。
*禁用 sip -> ln telnet 到 /usr/bin -> 启用 sip
下蛋愉快:)