ssh-agent on MAC OS X Lion - sometimes it requests ssh password
On OS X Lion, ssh-agent is configured to start at boot by default. And ssh-agent will always load your default keys (~/.ssh/id_rsa and ~/.ssh/id_dsa). If you have multiple ssh keys (I have one for each client/project) and want ssh-agent to remember them across restarts:
ssh-add -K ~/.ssh/your-other-key
I give mine an expiration as well, although honestly, I don't know if it matters, since the -K adds it to keychain and I believe the expiration is just the agent. Anyway:
ssh-add -K -t 7776000 ~/.ssh/my-other-key
Related videos on Youtube
![gold_cy](https://i.stack.imgur.com/8GBAa.jpg?s=256&g=1)
gold_cy
Updated on September 18, 2022Comments
-
gold_cy almost 2 years
I have a DataFrame that looks like this:
spot total date_delivery 2016-06-21 x 20 2016-07-25 x 22 2016-08-14 x 25 2016-09-11 y 16 2016-10-16 y 10
The index of the DataFrame is in a
datetime
format. I want to create a simple graph for each unique spot that shows the total over time. I am having trouble writing a loop that performs this as well as saves each one. Keep in mind that while there is only 2 actualspots
in this DataFrame the real one has many many more. -
gold_cy over 7 yearsThanks! This worked. How would I save all of them without doing it manually?
-
Julien Marrec over 7 years
import matplotlib.pyplot as plt
, thenplt.savefig('myfig.jpg')
for example. Pretty sure you'll have to loop over your groupby object in order to save each individually.