Skip to content

u/extra_

In this archive from Dec 2013 to Apr 2015

0
posts
19
comments
0
media
74
score

Top comments

Taking a guess here, the problem is that you're logging into GitHub via public key credentials but when you 'sudo su' to get into '/srv/http' you're now accessing root's public keys and none of them are in your GitHub account.

Edit: So to resolve, you should probably generate a new key pair for root & add it to your GitHub account.

Edit Edit: Do what /u/Katana__ said.

7 points

Everyone here is recommending an ssh agent (and that will probably work), but here is an alternative that is imo simpler: SSH ControlMaster. What the following config options will do is actually cache/keep open all SSH connections for however long you specify (Google it for a better/more detailed explanation).

# add this to ~/.ssh/config
Host *
    ControlMaster Auto
    ControlPath ~/.ssh/cm/%r@%h:%p
    ControlPersist 10m

If you don't want this enabled for all of your ssh connections, change the "*" above to "github.com". Also change the "10m" to however long you think is appropriate. So instead of caching your credentials, this persists the connection. (As a side effect, if you don't push/pull anything for a while you will see a timeout message, but this can be ignored. Simply means that next time you push/pull you will need to login again.)

4 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.