GithubHelp home page GithubHelp logo

mjschlot / windows-bash-ssh-agent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bahamas10/windows-bash-ssh-agent

0.0 0.0 0.0 4 KB

Scripts to persist ssh-agent on Bash on Ubuntu on Windows

Home Page: http://daveeddy.com/2017/10/18/persistent-sshagent-on-bash-on-ubuntu-on-windows/

Visual Basic 8.18% Shell 89.56% Batchfile 2.26%

windows-bash-ssh-agent's Introduction

ssh-agent on Bash on Ubuntu on Windows

Scripts to use to persist ssh-agent on Bash on Windows on Ubuntu

How To

Read the blog post here

http://daveeddy.com/2017/10/18/persistent-sshagent-on-bash-on-ubuntu-on-windows/

Install

Put the scripts into place

mkdir -p ~/bin
cp -vf ./start-ssh-agent ~/bin

Create a hidden scheduled task on Windows to then start this script at login

powershell -noprofile -windowstyle hidden -command "c:\windows\system32\bash.exe -c "~/bin/start-ssh-agent""

Deprecated Process

NOTE: This is the old way of installing this - the new process is explained in the blog post and way more simple.

The above blog post illustrates all of the steps required to make this work. You can run the included install script to put the script files into place.

$ cd old
$ ./install
mkdir: created directory '/home/dave/bin'
'/home/dave/userprofile' -> '/mnt/c/Users/dave'
mkdir: created directory '/home/dave/userprofile/Documents/scripts'
'/home/dave/userprofile/Documents/scripts/start-hidden.vbs' -> '/home/dave/dev/windows-bash-ssh-agent/start-hidden.vbs'
'/home/dave/userprofile/Documents/scripts/start-ssh-agent.bat' -> '/home/dave/dev/windows-bash-ssh-agent/start-ssh-agent.bat'
'/home/dave/bin/start-ssh-agent' -> '/home/dave/dev/windows-bash-ssh-agent/start-ssh-agent'

The Windows username can be supplied as the first argument - $USER is assumed.

License

MIT License

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.