“Everything is a file” is what made me start understanding linux few years ago and from there it only got easier to use with each new concept.

it’s all fun and games until you want to use your mouse and keyboard inputs on another machine and also view the other machines screen contents. then all of a sudden stuff stops being a file. quaint.

if only there was a way to share resources over a network…

I’ve figured out how to control computers remotely and I’ll share the script:

Client:

#!/bin/bash PASSWORD="your_password_here" sshpass -p "$PASSWORD" scp /dev/stdin user@server:/path/to/cmd.txt <<< "$1"

Server:

#!/bin/bash while true; do while IFS= read -r line; do eval "$line" done < "cmd.txt" > "cmd.txt" done

Just chmod 777 both files and run as root, ez.

What’s the difference between this and the classic “ssh user@server” ?

we’re fans of internet horror memes and being loud in libraries. so we love scp and hate ssh

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.