kalvn's links
Tag cloud
Picture wall
Daily
RSS Feed
  • RSS Feed
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Filters

Untagged links
9 results tagged ssh  ✕
Note: Running SSH Agent when starting Git Bash on Windows /shaare/OUk-hw
21/10/2022 13:55:53

Sous Windows, petit script à coller dans ~/.bashrc pour que l'agent SSH démarre lors de votre premier lancement de Git Bash et soit conservé d'un terminal à l'autre.

env=~/.ssh/agent.env

agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; }

agent_start () {
    (umask 077; ssh-agent >| "$env")
    . "$env" >| /dev/null ; }

agent_load_env

# agent_run_state: 0=agent running w/ key; 1=agent w/o key; 2= agent not running
agent_run_state=$(ssh-add -l >| /dev/null 2>&1; echo $?)

if [ ! "$SSH_AUTH_SOCK" ] || [ $agent_run_state = 2 ]; then
    agent_start
    ssh-add
elif [ "$SSH_AUTH_SOCK" ] && [ $agent_run_state = 1 ]; then
    ssh-add
fi

unset env

Source

git bash ssh snippet
GitHub - quantumsheep/sshs: Terminal user interface for SSH https://github.com/quantumsheep/sshs
20/06/2022 14:03:17

Un outil en ligne de commande tout simple pour gérer vos connexions SSH. En tapant sshs dans le terminal, il affichera une liste avec toutes les connexions configurées. Simple, efficace.

Via https://korben.info/sshs-gestionnaire-ssh.html

ssh outil
command line - How do I retrieve the public key from a SSH private key? - Ask Ubuntu https://askubuntu.com/questions/53553/how-do-i-retrieve-the-public-key-from-a-ssh-private-key
12/09/2020 14:26:49

Regénérer la clé SSH publique au format OpenSSH à partir de la clé privée.

ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
ssh key
Working with SSH key passphrases - GitHub Help https://help.github.com/en/articles/working-with-ssh-key-passphrases#auto-launching-ssh-agent-on-git-for-windows
08/04/2019 14:21:35

Ce script permet de lancer automatiquement un agent SSH lors de la première ouverture de git-bash lors de votre session. Par la suite, vous n'aurez plus besoin d'entrer le mot de passe de votre clé SSH jusqu'à la fin de votre session Windows.

L'article mentionne deux possibilité pour le nom du fichier qui contient le script. Dans mon cas, il n'y a que ~\.bashrc qui a fonctionné.

Si vous voulez interrompre l'agent, il suffit de tuer le process ssh-agent.exe.

Via https://stackoverflow.com/a/18404557/2086437

ssh git
Krypton - The new way to protect your private key on your phone. https://krypt.co/
31/03/2018 10:01:02

Un concept intéressant. Il utilise votre téléphone comme second facteur d'authentification pour vos sessions SSH avec clé privée.

ssh private key
Comment activer le client OpenSSH de Windows 10 - Informatique générale - ShevArezo`Blog https://blog.shevarezo.fr/post/2017/12/15/comment-activer-client-openssh-windows-10
20/12/2017 11:42:02

Ça peut servir.

ssh windows
mon truc à moi: Comment protéger votre accès ssh https://cajj.co/blog/index.php?id=21
20/03/2017 10:47:40

Protéger son accès SSH.

IPTables permet apparemment de configurer un nombre maximum de tentative de connexion ratée.

firewall ssh sécurité
Hardening ssh Servers https://feeding.cloud.geek.nz/posts/hardening-ssh-servers/
05/10/2016 19:02:40

Améliorer la sécurité de l'accès SSH à un serveur.

ssh sécurité unix linux serveur
ssh - How do I tell Git for Windows where to find my private RSA key? - Server Fault http://serverfault.com/questions/194567/how-do-i-tell-git-for-windows-where-to-find-my-private-rsa-key
18/12/2015 16:40:48

Comment inclure une clé ssh privée pour que le Git Bash sous Windows en tienne compte.
En gros il faut l'exporter en OpenSSH via PUTTYGEN, renommer le fichier en id_rsa et le placer dans le HOME/.ssh/ de Git Bash.

git ssh putty bash windows
3845 links, including 129 private
Shaarli - The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community - Theme by kalvn