ssh permission denied when prefixing with ssh protocol
It's kind of funny to be misled by the following line (talking about myself):
ssh -T ssh://[email protected]
The command doesn't expect actually a protocol prefix, but a hostname prefixed or not by a user name followed by an arobase, as said the manual page:
ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file] [-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address] [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]] [user@]hostname [command]
Here, it takes actually ssh://git
as a user name. That's why it won't log in since the user name which whom you connect has to be git
, and not ssh://git
.