On Tue, 17 Mar 2020 20:50:45 -0700 (PDT), in
gmane.comp.hardware.beagleboard.user
Silly question: why do you need "sudo"? (Oh, is that 193 a typo? The
normal private LAN prefix is 192.168).
The only thing I can see that getting you is that SSH will attempt to
pass the credentials of the root user as the login to the BBB end. Without
"sudo" it would have defaulted to passing credentials as the R-Pi regular
user (pi, if you haven't changed it). Passing the target (BBB) login name
supercedes either of those defaults.
I haven't checked the syntax for SSH in Linux, but under Windows it
appears that using "user@address"
C:\Users\Wulfraed>ssh
deb...@192.168.7.2
The authenticity of host '192.168.7.2 (192.168.7.2)' can't be established.
ECDSA key fingerprint is
SHA256:K22aW35XI0ZGh32/KHvHQTsCDl7hRzRHGuuoKJ8EtNU.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.7.2' (ECDSA) to the list of known
hosts.
Debian GNU/Linux 9
does the same as the "address -l user" option (and is actually documented
in the Debian ssh command:
usage: 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]
I've never dug into SSH deep enough to set up security files on both
ends. With the proper security entries AND with identical user names on
both ends, "ssh hostname" is sufficient to connect and log-in with no
password prompts. But since BBB default is to lock out root login, and the
user accounts are different "debian" vs "pi", such a feature isn't useful
-- it makes sense in an environment where every computer has been
configured with every username...
--
Dennis L Bieber