You can create additional SSH keys by simply providing a different name then id_rsa for the file name when prompted. Identity added: /Users/yourusername/.ssh/id_rsa ) # save and close file $ ssh-add -K ~/.ssh/id_rsa # add the following lines to the ~/.ssh/config file: We can type subl ~/.ssh/config Or code ~/.ssh/config instead to use other text editors. # open ~/.ssh/config file using the default Mac TextEdit editor. I want to connect my xcode app to online database and get the data from it and display in my app + write the data into online database using my app. Well go through it step by step starting from the beginning.Youll learn how to:. The file /Users/yourusername/.ssh/config does not exist. In this video series, Ill show you how to connect an iPhone app to MySQL.
Įnter passphrase (empty for no passphrase ): # generate the key $ ssh-keygen -t rsa -b 4096 -C public/private rsa key pair.Įnter file in which to save the key (/Users/yourusername/.ssh/id_rsa ):Ĭreated directory '/Users/yourusername/.ssh'. Ls: /Users/yourusername/.ssh: No such file or directory