Comment

Comment by viraptor

I know what you mean, but I disagree with "security experts". You don't need to be a security expert, just know the basics of how privileges work on your system. And if people don't, we just need to keep calling it out, because otherwise code like this ends up in production one day, where it actually matters.

Simpler bash equivalent for the record:

    scp script_demo.py "$1"
    ssh "$1" python script_demo.py
    scp "$1":output/* ./output/
parent viraptor 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton