A Python 3 function receives an SSH address like user@132.243.32.14:/random/file/path. I want to access this file with the paramiko lib, which needs the username, IP address, and file path separately.
How can I split this address into these 3 parts, knowing that the input will sometimes omit the username ?
use
not set(p).isdisjoint(set("0123456789$,")) where p is the SSH.
How to split an SSH address + path?