Set Up SSH Agent for git

UTF-8

I don't want to enter my ssh password every time I do git push or git pull to/from a remote repository I access via ssh (login via user name and password).

ssh-agent
git config --global credential.helper 'cache --timeout=3600'

Doesn't work. I still have to enter my password every time I want to push/pull.

What else do I need to do to make it work?

If I execute

ssh-agent bash

and then try to push twice in that same terminal, I still have to enter my password twice.

Jakuje

Oh, I misunderstood the job of an ssh agent. I'm using username and password. Can I store my password only in ram? I don't want it to just lie around in my home folder. – UTF-8

No with openssh standard tools. SSH-agent is for keys, that are added before using (now they can be added also with their first usage, but it is different story).

If you want to he able to pass passwords, there is sshpass, which can read a passwords from environment variables, but note, that it is certainly not recommended from security point of view. If you care about security, set up a public key authentication.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다debugcn@gmail.com 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

ssh-agent not getting set up (SSH_AUTH_SOCK, SSH_AGENT_PID env vars not set)

분류에서Dev

How do I set up a server for SSH?

분류에서Dev

Proper way to set up rsnapshot over ssh

분류에서Dev

Can't run git commands using SSH agent forwarding

분류에서Dev

Set up git alias with an input argument

분류에서Dev

How to set up git for wordpress theme development

분류에서Dev

How can I set up Git branch for automatic backups

분류에서Dev

how to set up username and passwords for different git repos?

분류에서Dev

How do I set up a local SOCKS proxy that tunnels traffic through SSH?

분류에서Dev

How do I set up SSH to transfer files from my local machine to a shared server with rsync?

분류에서Dev

ssh-agent 대신 gpg-agent

분류에서Dev

Extra configuration required for ssh-agent forwarding?

분류에서Dev

Why ssh-agent group ownership is not root

분류에서Dev

Why is ssh-agent running? Should it be?

분류에서Dev

How to start GnuPG SSH Agent for gvfs?

분류에서Dev

Git bash 대신 VS Code에서 Windows의 내장 OpenSSH ssh-agent를 어떻게 사용할 수 있습니까?

분류에서Dev

ssh-agent가 작동하지 않음 / git에 대한 암호를 입력하지 못하도록 저장

분류에서Dev

PHP, SSH 및 ssh-agent 통합

분류에서Dev

Ubuntu 16.04 ssh-add without ssh-agent?

분류에서Dev

Keychain ssh-agent overriding specified SSH key

분류에서Dev

Error in set up Rails

분류에서Dev

How to set up maven?

분류에서Dev

Set up project files

분류에서Dev

System locks up, but accessible by SSH

분류에서Dev

Doing an ssh-add upon ssh/slogin if key is not in ssh-agent?

분류에서Dev

Identify SSH public key on remote end's shell session (no agent or no identities in agent)

분류에서Dev

Set up of conditional redirect in htaccess

분류에서Dev

Set up permissions for a secondary user

분류에서Dev

Cannot set up constructor correctly

Related 관련 기사

  1. 1

    ssh-agent not getting set up (SSH_AUTH_SOCK, SSH_AGENT_PID env vars not set)

  2. 2

    How do I set up a server for SSH?

  3. 3

    Proper way to set up rsnapshot over ssh

  4. 4

    Can't run git commands using SSH agent forwarding

  5. 5

    Set up git alias with an input argument

  6. 6

    How to set up git for wordpress theme development

  7. 7

    How can I set up Git branch for automatic backups

  8. 8

    how to set up username and passwords for different git repos?

  9. 9

    How do I set up a local SOCKS proxy that tunnels traffic through SSH?

  10. 10

    How do I set up SSH to transfer files from my local machine to a shared server with rsync?

  11. 11

    ssh-agent 대신 gpg-agent

  12. 12

    Extra configuration required for ssh-agent forwarding?

  13. 13

    Why ssh-agent group ownership is not root

  14. 14

    Why is ssh-agent running? Should it be?

  15. 15

    How to start GnuPG SSH Agent for gvfs?

  16. 16

    Git bash 대신 VS Code에서 Windows의 내장 OpenSSH ssh-agent를 어떻게 사용할 수 있습니까?

  17. 17

    ssh-agent가 작동하지 않음 / git에 대한 암호를 입력하지 못하도록 저장

  18. 18

    PHP, SSH 및 ssh-agent 통합

  19. 19

    Ubuntu 16.04 ssh-add without ssh-agent?

  20. 20

    Keychain ssh-agent overriding specified SSH key

  21. 21

    Error in set up Rails

  22. 22

    How to set up maven?

  23. 23

    Set up project files

  24. 24

    System locks up, but accessible by SSH

  25. 25

    Doing an ssh-add upon ssh/slogin if key is not in ssh-agent?

  26. 26

    Identify SSH public key on remote end's shell session (no agent or no identities in agent)

  27. 27

    Set up of conditional redirect in htaccess

  28. 28

    Set up permissions for a secondary user

  29. 29

    Cannot set up constructor correctly

뜨겁다태그

보관