I have access to a linux server via a multi-hop ssh
ssh -L3880:localhost:3880 user@first-hop-server -t ssh -L3880:localhost:3880 user@end-server
This is fine for access through ssh. However I want also to access Apache web server on port 80 of the end server with a web browser.
I've found solution without hopping, but I'm not sure how to adapt it. I'm on a MacOS machine
EDIT: If I try Tero suggestion, and activating -v on ssh I see more or less:
debug1: Connection to port 3880 forwarding to localhost port 3880 requested.
debug1: channel 3: new [direct-tcpip]
debug1: Connection to port 3880 forwarding to localhost port 3880 requested.
debug1: channel 2: new [direct-tcpip]
channel 2: open failed: connect failed: Connection refused
debug1: channel 2: free: direct-tcpip: listening port 3880 for localhost port 3880,
connect from 127.0.0.1 port 38535, nchannels 3
debug1: Connection to port 3880 forwarding to localhost port 3880 requested.
debug1: channel 4: new [direct-tcpip]
(it goes on on different channels/ports all refused)