Add an environment variable:
GIT_SSH_COMMAND='ssh -i private_key_file' git clone user@host:repo.git
Add the key to the ssh agent:
ssh-agent bash -c 'ssh-add /somewhere/yourkey; git clone git@github.com:user/project.git'
Test the connection:
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
const messageMachine = Machine( | |
{ | |
id: 'message', | |
initial: 'idle', | |
context: { | |
duration: 5000, | |
elapsed: 0, | |
interval: 250, | |
percent: 0, | |
}, |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
Add an environment variable:
GIT_SSH_COMMAND='ssh -i private_key_file' git clone user@host:repo.git
Add the key to the ssh agent:
ssh-agent bash -c 'ssh-add /somewhere/yourkey; git clone git@github.com:user/project.git'
Test the connection:
import urwid | |
#------- | |
# Model | |
#------- | |
model = { | |
'value': 0 | |
} | |
I hereby claim:
To claim this, I am signing this object:
# Reconstructed via infocmp from file: /usr/share/misc/terminfo | |
# Install with: tic -x <filename> | |
tmux-256color|tmux with 256 colors, | |
OTbs, OTpt, am, ccc@, hs, km, mir, msgr, xenl, AX, G0, | |
colors#256, cols#80, it#8, lines#24, ncv@, pairs#32767, U8#1, | |
acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, | |
bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l, | |
clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=^M, | |
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, | |
cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, |
Authentication
User->API: grant_type=password&username=&password= + \n Authorization: Basic (b64(clientId:clientSecret))
API->API: getClient()\nVerify the clientId and Secret
API->API: grantTypeAllowed()\nIs this client authorized for the grant type
API->API: getUser()\nIs the user valid
API->API: saveAccessToken()\nSave the token for the user