Skip to content

Instantly share code, notes, and snippets.

View Bortus-AI's full-sized avatar
💭
Plugging away

Bortus-AI

💭
Plugging away
View GitHub Profile
#For Build a KASM Workspace
#GET SUDO ACCESSS
sudo -i
#SWAP AREA CRETING
sudo dd if=/dev/zero bs=1M count=5024 of=/mnt/swapfile.swap
sudo chmod 600 /mnt/swapfile.swap
sudo mkswap /mnt/swapfile.swap
sudo swapon /mnt/swapfile.swap
@Bortus-AI
Bortus-AI / ssh-copy-id.sh
Created January 12, 2023 18:04 — forked from netoxico/ssh-copy-id.sh
Shell script to install your public key on a remote machine
#!/bin/sh
# Shell script to install your public key on a remote machine
# Takes the remote machine name as an argument.
# Obviously, the remote machine must accept password authentication,
# or one of the other keys in your ssh-agent, for this to work.
ID_FILE="${HOME}/.ssh/id_rsa.pub"
if [ "-i" = "$1" ]; then