Code Snippets SSH Config

Short texts SSH Config 🧑‍💻 Code snippets SSH Config ✍️ Reading lists SSH Config 👀

Mac plists

Label homebrew.gpg.gpg-agent ProgramArguments /opt/homebrew/bin/gpgconf –launch gpg-agent RunAtLoad Label link-ssh-auth-sock ProgramArguments /bin/sh -c /bin/ln -sf $HOME/.gnupg/S.gpg-agent.ssh $SSH_AUTH_SOCK RunAtLoad Label daemon.ssh-tunnel ProgramArguments /Users/paul/.nix-profile/bin/ssh -nNT -i /Users/paul/custom-ssh/temp-key -R 0.0.0.0:8080:localhost:2223 [email protected] RunAtLoad KeepAlive ThrottleInterval 30 Label daemon.sshd ProgramArguments /Users/paul/.nix-profile/bin/sshd -D -f /Users/paul/custom-ssh/sshd_config RunAtLoad KeepAlive NetworkState Port 2223 HostKey /Users/paul/custom-ssh/ssh_host_rsa_key AuthorizedKeysFile /Users/paul/.ssh/authorized_keys ChallengeResponseAuthentication no

/etc/ssh/sshd_config

# $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $ # This is the sshd server system-wide configuration file. See # sshd_config(5) for more information. # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin # The strategy used for options in the default sshd_config shipped with # OpenSSH is to specify options with their default value where # […]

#scripts #cli #devops a local script to keep within project dir in git and run ssh cmds remotely

#! /usr/bin/env bash DIR=”$( dirname “$_” )” DIR=${DIR/\./} #if script invoked like ./index then remove the dot commands=(“sshprod”, “sshproddeploy”) echo ${commands[@]} show_commands() { echo ‘Available commands: sshprod sshproddeploy ‘ } #if [ ${commands[@]} | grep -o “sshproddeploys” | wc -w ]; then #echo ‘yes’ #else #echo ‘no’ #fi if [ $# -gt 0 ]; then […]

ssh_config

# This is the ssh client system-wide configuration file. See # ssh_config(5) for more information. This file provides defaults for # users, and the values can be changed in per-user configuration files # or on the command line. # Configuration data is parsed as follows: # 1. command line options # 2. user-specific file # […]

sshd_config

# This is the ssh client system-wide configuration file. See # ssh_config(5) for more information. This file provides defaults for # users, and the values can be changed in per-user configuration files # or on the command line. # Configuration data is parsed as follows: # 1. command line options # 2. user-specific file # […]