1

Current Machine: Git Bash on Windows.

Trying to connect to a Mac through SSH.

When I execute the below command:

ssh [email protected] "ls"
Password: <myPassword>

Output (works as desired):

Desktop
Documents
Downloads
Library
Movies
Music
Pictures
Public

Note: My username for gitbash is different from 'aisong'. Similarly, the password for my username is different from 'myPassword' used above for the username 'aisong'.

How do I store this password (myPassword) for the username 'aisong' permanently so that it doesn't prompt for a password next time I execute the above ssh command?

1
  • You should better set up public key authentication. Commented Nov 3, 2016 at 7:12

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.