Running following command will get you the SSH key
cat ~/.ssh/id_rsa.pub
Note: if this give error ,then try run below command
ssh-keygen
cat ~/.ssh/id_rsa.pub
Running following command will get you the SSH key
type C:Users\USERNAME\.ssh\id_rsa.pub
insert your username or windows pass to the key, Note: if this give error ,then try run below command
ssh-keygen
type C:Users\USERNAME\.ssh\id_rsa.pub
After running command key will be print on command prompt/terminal, COPY this key
key will look like below:
ssh-rsa AAfdsfEAAAADAQABAAACAQDDC9E5TrOBnBjsCVL4KwMkbbHXsF//mjvArN/ pXF0ciborNorqDB95kFSwBfbP1SEf/iFPjszO8lm4C5fVBhfdgfdgI5cIzRazS1cP4+EOIXGwFwv+efI5v+svU4vnm1416FU1eAc0yvqWzlxMnPejAdyCQIlP40cDhUyv84Z2Og1Aj6r2oleKNiDmE6L+jkauHx8zjSrJDknOaEilmmVxZ3s2RQyCW0515eHPfCQ95m53ccNCSLA+X3B4keNLiqP6IdW31vwp3XbGBNUR2OniU1VIQt9IJulmks5yFih28mH1oFjH7eNOvnf9ybNueoCvi7af5YDBQQwNKe/wP6maTgjq2/hBfRPD1Cp6X7zVzdfdsfP5HL4KWWnPpzFSc20peT8Bc8kEQPWbMW9K+rG0eEMgVz0a6phPAFd8SJ9nYWNS3BWUt0YMWzDeR2PeYbvGmi7ri1RIo1Hlwzbi+qFeMEA1KLIGolMekNpU7+tHqEIsu7kGk9to1SLOksphOY/qISw== “kashifwahaj@gmail.com”
Look for SSH menu in your hosting panel and then got to import key , give any name and paste key in key textarea and then submit.
It will generate SSH connection crendentials for you to connect SSH locally.
Now after importing your SSH configuration will be available in hosting panel, now if you click details or credentials in SSH in hosting panel you will get 3 things
Now, Open Terminal or Command Prompt
ssh username@hostname -p port
Now if terminal ask you for further confirmation, then type yes and hit enter.