Skip to content

Instantly share code, notes, and snippets.

@1x24
1x24 / mount.sh
Created April 27, 2023 07:55
Easily mount a remote Linux server to MacOS using Fuse-T and SSHFS
#!/bin/bash
##################################################################################################################################################################
##################################################################################################################################################################
# https://github.com/1x24
# 1x24 AT tuta.io
# April 27, 2023
##################################################################################################################################################################
# This BASH script automatically mounts remote directories from a Linux server to your MacOS computer, using SSHFS.
# It is assumed that you have already set up passwordless login using SSH keys. If not, you can use https://gist.github.com/1x24/c96a93d3c749e996319ac6001ef4e3ab
# The script will terminate its process if you didn't set up SSH key-based login to the remote server that you're attempting to mount.
@1x24
1x24 / use_ssh_keys.sh
Last active April 14, 2023 14:59
MacOS / Linux BASH Script to create and add SSH keys to a Linux server
#!/bin/bash
############################################################################################################################################################
############################################################################################################################################################
# https://github.com/1x24
# 1x24 AT tuta.io
# March 31, 2023
############################################################################################################################################################
# This BASH script checks if you have SSH keys on your iMac or MacOS laptop, or your Linux machine.
# If you do not have the SSH keys, it generates a modern one for you.
# In either case, it copies the key to your server and makes some configuration changes to make it easy to login with the keys.
@1x24
1x24 / use_ssh_keys.ps1
Last active May 1, 2023 13:26
Windows 10/11 PowerShell Script to create and add SSH keys to a Linux server
#############################################################################################################################################################
#############################################################################################################################################################
# https://github.com/1x24
# 1x24 AT tuta.io
# March 31, 2023
#############################################################################################################################################################
# This PowerShell script checks if you have SSH keys on your Windows 10 or Windows 11 machine.
# If you do not have the SSH keys, it generates a modern one for you.
# In either case, it copies the key to your server and makes some configuration changes to make it easy to login with the keys.
# Save then use as follows: