Are you trying to ssh from Jetson to Mac, or from Mac to Jetson? The information below perhaps covers more information than you need since I’m sort of describing both ends.
Note: If your Jetson and host PC are connected via an Ethernet switch, then much of what follows is unnecessary. The descriptions related to the USB network addresses 192.168.55.1 and 192.168.55.100 would not be an issue, and you’d just use the address of the Jetson and the address of the host PC for normal Ethernet.
ssh is able to provide some more verbose debugging output, for example:
ssh -v myhost
You could record this for a log (it won’t record passwords):
ssh -v myhost 2>&1 | tee log_ssh.txt
However, it sounds like this is networking in the case of ping failure (but it might just be using the wrong IP address). If you are on the host, and the USB cable is plugged in and working as a network router, then you can ping from host to Jetson:
ping 192.168.55.1
If you are on the Jetson, and want to ping the host, you can:
ping 192.168.55.100
Can you clarify if you want to ssh from Mac to Jetson, or from Jetson to Mac? Also, if you are going to use the regular Ethernet networking, or if you are depending on the USB virtual networking of the Jetson.
Case: Common to Both Ends
It is useful to describe the USB cable network setup if you want to debug it. The Jetson, on the correct USB port, looks like a network router device. When plugged in to the host PC (or Mac) USB’s type-A port (or with a bit of “Jedi mind trickery”, a type-C port), the host PC will see a router. If all goes well, then the host sends a DHCP request to the router (Jetson), and assigns an address to the host side of 192.168.55.100. This makes it possible for network packets between the two, but ssh setup is its own topic.
If the host PC has security, then it might reject assigning a network address to the virtual router provided by the Jetson. I would expect ping to fail (or if the host is not set to reply to ICMP protocol for security reasons, then ping would again fail for a slightly different reason, but that reason would not be Jetson failure…it would be a host PC configuration issue).
Case: PC (Mac side) Testing of SSH
The host PC might accept that network device and set up for address 192.168.55.100, and work, but still have ssh issues (this is true regardless of whether or not you use the virtual wired Ethernet over USB, or if you use the actual Ethernet wired networking). I’m not sure, but on a command line I think a Mac might respond to looking at network interfaces with ifconfig (or maybe sudo ifconfig; newer Linux uses “ip -s addr”). Once that is working, then ssh has its own security.
From the Mac can you ssh to the same account on the Mac as both local and remote end? This means ssh is being used in loopback whereby you use ssh directly from the PC/Mac and account name to that same PC/Mac and account name (not involving the Jetson except if you use the 192.168.55.100 address, but this is incidental). There won’t be any network issues in loopback. If ssh works in loopback, then it becomes possible for ssh to work from remote.
If ssh security is involved, then ssh might not ever respond from remote (technically, ssh security could prevent loopback too, but it is the least complicated test; ssh from remote adds more to the requirements simply by being a host the local PC has never seen). The verbose ssh listed at the start of this reply is quite useful in knowing if security is involved.
Case: Jetson Testing of SSH
The previous paragraph can be inverted, and from the other system you can also perform loopback ssh, and ssh to the other system’s IP address. On the Jetson side loopback for virtual wired USB Ethernet goes to 192.168.55.1; the same thing on loopback for host PC side is 192.168.55.100. You can use ssh -v if there are issues and use that to see why ssh is failing (assumes the IP address is valid). Then you can also ping or examine by swapping account login name and IP address for the appropriate “to or from” remote or local device (local or remote is just a perspective from which system you are logged in to before trying to start ssh).
All of the previous testing can skip the USB addresses entirely if you have wired Ethernet addresses. On the Jetson side you can gather information about available devices and assigned addresses via:
ip -s addr
If you need to log something for a forum post, then you can just append " 2>&1 | log_name.txt", e.g., “ip -s addr 2>&1 | tee log_jetson.txt” or “ip -s addr 2>&1 | tee log_mac.txt”. Similar for “ssh -v”.