Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

bash: syntax error near unexpected token `newline'

chakradharsw June 6, 2018

following the

https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html

and getting above error while executing the below line

ssh-add ~/.ssh/<private_key_file>

 

1 answer

0 votes
Grigory Salnikov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2018

Hi!

There's a hidden newline character in you string. Try not to copy it but write it yourself, character by character.

chakradharsw June 6, 2018

i'm new please explain me how or show me some example

Grigory Salnikov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2018

Ok, do you replace the "<private_key_file>" with the actual file name?

chakradharsw June 6, 2018

no

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events