Git Product home page Git Product logo

npiperelay's Introduction

npiperelay

This is a fork of https://github.com/jstarks/npiperelay which is not maintained anymore. For my use case npiperelay has to handle blocked named pipes. The issue jstarks#7 has no reaction neither has my pull request jstarks#18

I'm using npiperelay to access the Windows ssh-agent named pipe from WSL. I have no idea if other use cases are or will be affected by changes to this fork.

How it works

  1. Download and unzip npiperelay from the release page. I saved it in ~/scripts/

  2. Create a script based on this template. I named it ~/scripts/start_ssh_agent.sh. You have to replace <your_home_dir> and double check the file names and locations.

     export SSH_AUTH_SOCK=<your_home_dir>/.ssh_agent_npiperelay.sock
     ss -a | grep -q $SSH_AUTH_SOCK
     if [ $? -ne 0   ]; then
         rm -f $SSH_AUTH_SOCK
         ( setsid socat UNIX-LISTEN:$SSH_AUTH_SOCK,umask=077,fork EXEC:'<your_home_dir>/scripts/npiperelay.exe -ei -s //./pipe/ssh-pageant',nofork& ) >/dev/null 2>&1
     fi
    
  3. Source this file for example in your .bashrc . <your_home_dir>/scripts/start_ssh_agent.sh. Mind the . in the beginning!

npiperelay's People

Contributors

axxelg avatar brucefletcher avatar jstarks avatar stuartleeks avatar

Stargazers

 avatar

Watchers

 avatar  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.