apt-get install dos2unix
Then use it like so:
dos2unix /var/www/project-create.sh
Will recursively find all files inside current directory and call for these files dos2unix command
find . -type f -print0 | xargs -0 dos2unix
apt-get install dos2unix
Then use it like so:
dos2unix /var/www/project-create.sh
Will recursively find all files inside current directory and call for these files dos2unix command
find . -type f -print0 | xargs -0 dos2unix
When you set up SSH, you create a key pair that contains a private key (saved to your local computer) and a public key (uploaded to Bitbucket). Bitbucket uses the key pair to authenticate anything the associated account can access. This two-way mechanism prevents man-in-the-middle attacks.
This first key pair is your default SSH identity. If you need more than a default identity, you can set up additional keys.
For security reasons, we recommend that you generate a new SSH key and replace the existing key on your account at least once a year.
You can’t use the same key between accounts. You must create new keys for each individual Bitbucket account.
Use this section to create a default identity and SSH key when you’re using Git on Windows. By default, the system adds keys for all identities to the /Users/<username>/.ssh directory.Collapse
ssh-keygen.For Windows 7 or earlierYou can only enter ssh-keygen into the Git Bash window. It won’t work in the Command prompt.The command prompts you for a file to save the key in:$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/emmap1/.ssh/id_rsa):/c/Users/<username>/.ssh/id_rsa.We recommend you keep the default key name unless you have a reason to change it.To create a key with a name or path other than the default, specify the full path to the key. For example, to create a key called my-new-ssh-key, you would enter the Windows path, shown here:$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/emmap1/.ssh/id_rsa): c:\Users\emmap1\.ssh\my-new-ssh-key$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/emmap1/.ssh/id_rsa):
Created directory '/c/Users/emmap1/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/emmap1/.ssh/id_rsa.
Your public key has been saved in /c/Users/emmap1/.ssh/id_rsa.pub.
The key fingerprint is: e7:94:d1:a3:02:ee:38:6e:a4:5e:26:a3:a9:f4:95:d4 emmap1@EMMA-PC.ssh to view the key files.You should see something like the following:$ dir .ssh
id_rsa id_rsa.pubThe command displays two files, one for the public key (for example id_rsa.pub) and one for the private key (for example, id_rsa).If you don’t want to type your password each time you use the key, you’ll need to add it to the ssh-agent.
$ eval $(ssh-agent)
Agent pid 9700ssh-add followed by the path to the private key file:$ ssh-add ~/.ssh/<private_key_file>.ssh/id_rsa.pub file (or whatever you named the public key file) and copy its contents.Default public key.$ ssh -T git@bitbucket.orgThe command message tells you which of your Bitbucket accounts can log in with that key.conq: logged in as emmap1. You can use git or hg to connect to Bitbucket. Shell access is disabled.If you get an error message with Permission denied (publickey), check the Troubleshoot SSH issues page for help.Now that you’ve got an SSH key set up, use the SSH URL the next time you clone a repository. If you already have a repository that you cloned over HTTPS, change the remote URL for your repository to its SSH URL.