Skip to content

Embedded systems support: no python on board but ssh access is available#83

Open
dketov wants to merge 1 commit into
pixelb:masterfrom
dketov:embedded-systems-support-via-ssh
Open

Embedded systems support: no python on board but ssh access is available#83
dketov wants to merge 1 commit into
pixelb:masterfrom
dketov:embedded-systems-support-via-ssh

Conversation

@dketov
Copy link
Copy Markdown

@dketov dketov commented May 15, 2026

No description provided.

@dketov dketov force-pushed the embedded-systems-support-via-ssh branch from e784765 to d35f6ec Compare May 15, 2026 09:59
@pixelb
Copy link
Copy Markdown
Owner

pixelb commented May 15, 2026

Interesting. The implementation looks sound

Comment thread ps_mem.py
return os.path.join(self.proc, *(str(a) for a in args))

def listdir(self, path):
import subprocess as sp
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These imports could be done once in init() I think

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

Copy link
Copy Markdown
Owner

@pixelb pixelb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

os.geteuid() call is invalid now, so should check for startswith("root@") if set

@dketov
Copy link
Copy Markdown
Author

dketov commented May 28, 2026

os.geteuid() call is invalid now, so should check for startswith("root@") if set

What for? I assume that if -H user@host is specified then ssh access is granted to user by SSH public keys registered @host, so there is no any special check such as startswith("root@") needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants