!texto
The last command that started with that text.
!ssh re-runs the last command that began with ssh, arguments and all. It's how you return to a long command without hunting for it.
It runs without asking — if the last ssh isn't the one you remember, too late. The :p modifier prints before running: !ssh:p.
$ ssh estufa@herbario.exemplo.org
Connection closed.
$ !ssh
ssh estufa@herbario.exemplo.org