Coder Social home page Coder Social logo

icorbett / mac-ssh-confirm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ipartola/mac-ssh-confirm

0.0 1.0 0.0 15 KB

Protect against SSH Agent Hijacking on Mac OS X with the ability to confirm agent identities prior to each use

License: MIT License

Makefile 13.26% Shell 86.74%

mac-ssh-confirm's Introduction

Overview

One way to help protect against SSH Agent Hijacking is by confirming each use of the of the decrypted identities managed by ssh-agent.

These tools allow confirmation while (still) meeting the following objectives:

  • Password protected SSH identities
  • SSH identity passwords stored in Mac OS X Keychain
  • Passwords do not need to be entered again and again.
  • Absolute minimum install: - Do not overwrite or replace executables - Do not require compiling or Xcode

Additionally, configuring SSH to use ControlMaster connections, will keep things unobtrusive (see ControlMaster Controller for a useful utility that eases management of SSH ControlMaster connections).

This is a useful hack. More useful would be development by Apple to support SSH Agent confirmations.

Installation

  1. OS X no longer comes with X11. Unless you have an old release, XQuartz is required (#1).
  2. Run make install to install two scripts on your system: /usr/libexec/ssh-askpass and /usr/libexec/ssh-add-confirm
  3. Add identities to your Mac OS X Keychain via ssh-add -K

Use

  1. Prior to connecting to any hosts, execute ssh-add-confirm
    • In the interest of security, do not Always Allow security access to your keychain
  2. Repeat the step above each time you log into your Mac

To clear existing identities in the agent and load configured identies to require confirmation:

  • ssh-add -D; ssh-add-confirm

To clear existing identities in the agent and load identities saved in your keychain without the need to confirm access:

  • ssh-add -D; ssh-add -k

Inspiration

License

mac-ssh-confirm's People

Contributors

icorbett avatar ipartola avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.