I know Apple's article about SSH. I know the video about how to log in to Mac by SSH.
I have the following settings in MacBookA
I am trying to connect to it by the command in the picture in MacBookB
ssh <username>@<address>
where and are my appropriate username and address, respectively.
I get the following error message
[1448]ssh <username>@<address>
ssh: connect to host <address> port 22: Operation timed out
[1448]
I have MacbookA on. I put the user of MacbookA online and offline by MacbookA, then tried to log in MacbookB's terminal with Operation timed out -error.
How can you connect to your remote Mac by SSH in terminal?
Are they both on the same local network? If so, can you connect using the Bonjour name?
You need to make sure that in both computers port 22 is open (firewalls anywhere?) and that there is a network route from A to B. (not behind NAT or behind NAT and forwarded/DMZ)
Are you able to ping both computers from eachother? [answered: yes]
Additions:
Do either computers' IP addres fall in one of the following ranges?: 192.168.xxx.xxx, 10.xxx.xxx.xxx or 169.xxx.xxx.xxx If so, they are behind a router of some sort and you will need to make sure the router knows to forward requests to the right computer through NAT/port forwarding, or setting up the DMZ in the routers configuration to the receiving computers' internal IP address.
For example, My Macbook Pro is 10.0.0.1 and the router is 10.0.0.138. lets say my public IP is 96.1.2.3 (all are fictional but for the example this will do fine.)
I have setup my router (which is also my broadband modem) to forward every request to 10.0.0.1 by putting it into the routers configuration via the utility that came with it.
now when i try to connect to 96.1.2.3 the router is the first responder but it knows to forward the request to my Macbook Pro so in the end my Macbook Pro responds through the router back to the requesting party.
If you don't setup any kind of forwarding on your router, it is likely to deny any kind of request from the outside world, and even if it doesn't, it's not going to know where to send the request on the internal network. (these days there is pretty much always an internal network even if you only use one computer).
I think the issue is not so much in the firewall but more likely to be in your router settings, you need to make sure that the receiving end actually gets to handle the request.
What do you mean by "appropriate username and address"? Is the address an internet addres, a LAN address, or bonjour? Have you tried turning off all firewalls to see if it's possible then? You might want to play with Utilities/Network Utility.
I see from an answer that you are on two different internet connections. Are you sure that the individual routers/cable modems don't have firewalls built in?