title: wget a raw file from Github from a private repo
body: <p>I am trying to get a raw file from github <strong><em>private project</em></strong> using wget. Usually if my project is public it is very simple</p>
  
  <blockquote>
    <p>For Public Repo This is my repo url (you don't have to click on it to answer this question)</p>
  </blockquote>
  
  <p><a href="https://github.com/samirtendulkar/profile_rest_api/blob/master/deploy/server_setup.sh" rel="noreferrer">https://github.com/samirtendulkar/profile_rest_api/blob/master/deploy/server_setup.sh</a></p>
  
  <p>I click raw
  <a href="https://i.stack.imgur.com/PMjxq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PMjxq.png" alt="enter image description here"></a></p>
  
  <p>After I lick raw My URL looks like this </p>
  
  <p><a href="https://raw.githubusercontent.com/samirtendulkar/profile_rest_api/master/deploy/server_setup.sh" rel="noreferrer">https://raw.githubusercontent.com/samirtendulkar/profile_rest_api/master/deploy/server_setup.sh</a> (Notice only the word "<em>raw</em>" is added to the URL)</p>
  
  <p>which is awesome I then do </p>
  
  <pre><code>ubuntu@ip-172-31-39-47:~$ wget https://raw.githubusercontent.com/samirtendulkar/profile_rest_api/master/deploy/server_setup.sh
  </code></pre>
  
  <p>when I do <code>ls</code> it shows that the file has been downloaded</p>
  
  <pre><code>ubuntu@ip-172-31-39-47:~$ ls
  'server_setup.sh'
  </code></pre>
  
  <blockquote>
    <p>For a Private repo The raw file comes with a token</p>
  </blockquote>
  
  <p><a href="https://github.com/samirtendulkar/my_project/blob/master/deploy/server_setup.sh" rel="noreferrer">https://github.com/samirtendulkar/my_project/blob/master/deploy/server_setup.sh</a></p>
  
  <p>So far so good Now when I click Raw (see image above) My URL changes and has a token in it along with the "<em>raw</em>" prefix</p>
  
  <p><a href="https://raw.githubusercontent.com/samirtendulkar/my_project/master/deploy/server_setup.sh?token=AkSv7SycSHacUNlSEZamo6hpMAI6ZhsLks5b4uFuwA%3D%3D" rel="noreferrer">https://raw.githubusercontent.com/samirtendulkar/my_project/master/deploy/server_setup.sh?token=AkSv7SycSHacUNlSEZamo6hpMAI6ZhsLks5b4uFuwA%3D%3D</a></p>
  
  <p>The url has these extra parameters <code>?token=AkSv7SycSHacUNlSEZamo6hpMAI6ZhsLks5b4uFuwA%3D%3D</code></p>
  
  <p>My wget does not work. How Do I fix this issue. By the way when I say it does not work I mean instead of the <code>ls</code> showing</p>
  
  <pre><code>ubuntu@ip-172-31-39-47:~$ ls
      'server_setup.sh'
  </code></pre>
  
  <p>It shows as below </p>
  
  <p><a href="https://i.stack.imgur.com/QF8w9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QF8w9.png" alt="enter image description here"></a>
  which is not making me run futher commands like </p>
  
  <pre><code>ubuntu@ip-172-31-39-47:~$ chmod  +x server_setup.sh
  </code></pre>
  
  <p>and</p>
  
  <pre><code>ubuntu@ip-172-31-39-47:~$ sudo ./server_setup.sh
  </code></pre>
  
  <p>which I need to get the project on to AWS
  <a href="https://i.stack.imgur.com/L7Zkb.png" rel="noreferrer"><img src="https://i.stack.imgur.com/L7Zkb.png" alt="enter image description here"></a></p>