Showing posts with label ssh. Show all posts
Showing posts with label ssh. Show all posts

Friday, June 21, 2013

Create one time login link from the command line using drush no need to reset your password

I don't use this command as much but when I need it I always forget what this string of code was.

So I'll post it on my blog :)

The magic:
drush uli

Or if your targeting a specific user:
drush uli username

Using drush you can create a one time login link for a user or admin.
This is especially usefull if you want to login to the site without changing the password.
For example if you have a client with a drupal site that doesn't know the administrators pass or doesn't want to change it because you need it.
This can also be used to change the password if you don't know where the password reset link would be send or don't have access to the email address ( anymore )

Wednesday, October 10, 2012

Create a new repository and add ssh login for the command line so you don't have to type your password every time you do a git push


Create a new repository and add ssh login for the command line so you don't have to type your password every time you do a git push

1) Create new repository on github
2) Create a new repository on the command line


touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:scubafly/<reponame>.git
git push -u origin master


To create a new ssh rya key pair if needed see https://help.github.com/articles/generating-ssh-keys

after that you can use the following to log in once per terminal without reentering the username and pass all the time...

In the terminal enter:
3) ssh-agent bash
4) ssh-add
5) enter passphrase