Client Configuration
Getting the SSH User
TLDR: It’s App
So if you want to SSH to your Blackberry, type in your terminal or SSH program:
ssh App@target.ip:2022I was able to find the answer also in an almost one-year-old video from sw7ft, where his SSH program displays the username and even the port. Nice!
Handling RSA Key Deprecation
If you were able to SSH from the daemon setup into your device, then you did it!
Sadly, it was, of course, not over for me. As I previously mentioned the issue with id-rsa being deprecated in newer OpenSSH versions, here are two solutions:
1. Using ssh_config
For the sane people just utilizing a ssh_config:
Add the following snippet on your host machine into ~/.ssh/config. You may change the blackberry in the first line to whatever name you like! For the sake of the demonstration, I will keep it as is, and take care to adjust the CHANGE_ME to your path and host. I will keep the port on 2022, as it’s preconfigured already on the Blackberry devices. If you changed it, then of course adjust it:
Host blackberry
Port 2022
IdentitiesOnly yes
User App
HostName CHANGE_ME
IdentityFile /home/CHANGE_ME/.ssh/CHANGE_ME
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa2. NixOS / home-manager Configuration
Now for the not-so-sane people like me who configure their SSH settings via NixOS or home-manager:
{
programs.ssh = {
enable = true;
enableDefaultConfig = false;
matchBlocks = {
"blackberry" = {
hostname = "192.168.8.223";
port = 2022;
identityFile = "/home/cashmere/.ssh/bb";
identitiesOnly = true;
user = "App";
extraOptions = {
HostKeyAlgorithms = "+ssh-rsa";
PubkeyAcceptedKeyTypes = "+ssh-rsa";
};
};
"*" = {
extraOptions = {
StrictHostKeyChecking = "ask";
VerifyHostKeyDNS = "yes";
VisualHostKey = "yes";
};
};
};
};
}And that’s all!
Connecting to Your Device
Now, if everything went well, you may SSH into your device with the following command:
ssh blackberryNow we have full user access on the Blackberry through SSH.
If it’s nothing for you because you insist on full root access, then this guide was not for you, sorry :(.