to execute necessary shell script, is scp or ssh more effective?
Solutions:
good questions, IDK. I did some digging on google and asked alvin if there were any pros to using one or the other.
so by just talking through it, i think its better to just pipe the script to ssh or in a heredoc
heredoc is ok for a few lines but gets kinda messy if its larger. i assume your script is longer than a few lines so piping it is better
decided to use scp shell.sh ubuntu.json root@$PACKET_IP:/tmp instead of cat shell.sh | ssh root@$PACKET_IP 'bash -'
More deliberate about heads down time, honing in on work and cutting down on distractions.
Learned to ask for help more effectively. Barry was working on the Isolation RFC, and I asked for other folks for assistance (Alvin really helped out a lot last week).
Issues/Questions:
scp
orssh
more effective?Solutions: