Git Product home page Git Product logo

abci-sandbox-sshd's Introduction

abci-sandbox-sshd

This package provides helper scripts for running sshd on ABCI compute nodes with user privileges.

Basic Procedure

  • First clone, and generate hostkeys.
es $ cd ~
es $ git clone https://github.com/ogawa/abci-sandbox-sshd.git
es $ cd abci-sandbox-sshd
es $ ssh-keygen -f ./ssh_host_rsa_key -N '' -t rsa
es $ ssh-keygen -f ./ssh_host_dsa_key -N '' -t dsa
es $ cp sshd_config.tmpl sshd_config
  • Update abci-sandbox-sshd/sshd_config to use your ABCI ID.

  • Copy your SSH pubkey to abci-sandbox-sshd/authorized_keys.

  • Run your own SSHD on an ABCI compute node.

es $ qrsh -g abci_group -l rt_F=1
gXXXX $ (cd abci-sandbox-sshd; /usr/sbin/sshd -D -f sshd_config)
  • Connect from your local PC to sshd on the compute node.
clientpc $ ssh gXXXX -p 2222 -l abci_user -o ProxyJump='%[email protected],%r@es' -A

To make things easier, add the following configuration to .ssh/config on your client PC.

Host gXXXX
     HostName gXXXX
     User abci_user
     ProxyJump %[email protected],%r@es
     Port 2222
     ForwardAgent yes

and then,

clientpc $ ssh gXXXX

Dispatching from a batch script

This package includes secure-shell-run.sh and secure-shells-run.sh that are example of dispatching single or multiple instances of sshd from a batch script.

es $ qsub -g abci_group abci-sandbox-sshd/secure-shell-run.sh
es $ qsub -g abci_group abci-sandbox-sshd/secure-shells-run.sh

Known Issues

  • These scripts do nothing for keeping environment variables. To do so, store environment variables to a file before kicking sshd, and load them after establishing SSH connections.

abci-sandbox-sshd's People

Contributors

ogawa avatar

Stargazers

Tosho Hirasawa avatar  avatar Sameer Deshmukh avatar

Watchers

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