GNS3 iTerm2 terminal says ‘telnet: not found’

Pocket

May from macOS High Sierra, Apple removed telnet?

  1. macOS High Sierra 10.13.2
  2. GNS3 2.1.1
  3. terminal: iTerm2
  4. VMware Fusion Pro 10.1.0 (7370838)

telnet not found

sh-3.2$ exec telnet 172.16.98.128 5000
sh: exec: telnet: not found
sh-3.2$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin
$ brew install telnet
$ which telnet
/usr/local/bin/telnet

Configure GNS3 iTerm2 configuration.

osascript -e 'tell application "iTerm"' -e 'activate' -e 'if (count of windows) = 0 then' -e '   set t to (create window with default profile)' -e 'else' -e '   set t to current window' -e 'end if' -e 'tell t' -e '    create tab with default profile command "sh"' -e '    set s to current session' -e '    tell s' -e '        set name to "%d"' -e '        write text "exec telnet %h %p"' -e '    end tell' -e 'end tell' -e 'end tell'

changes following(specify telnet full path):

osascript -e 'tell application "iTerm"' -e 'activate' -e 'if (count of windows) = 0 then' -e '   set t to (create window with default profile)' -e 'else' -e '   set t to current window' -e 'end if' -e 'tell t' -e '    create tab with default profile command "sh"' -e '    set s to current session' -e '    tell s' -e '        set name to "%d"' -e '        write text "exec /usr/local/bin/telnet %h %p"' -e '    end tell' -e 'end tell' -e 'end tell'

Leave a Reply

Your email address will not be published. Required fields are marked *