ssh-agent on MAC OS X Lion - sometimes it requests ssh password

44

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
Share:
44

Related videos on Youtube

gold_cy
Author by

gold_cy

Updated on September 18, 2022

Comments

  • gold_cy
    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 actual spots in this DataFrame the real one has many many more.

  • gold_cy
    gold_cy over 7 years
    Thanks! This worked. How would I save all of them without doing it manually?
  • Julien Marrec
    Julien Marrec over 7 years
    import matplotlib.pyplot as plt, then plt.savefig('myfig.jpg') for example. Pretty sure you'll have to loop over your groupby object in order to save each individually.