I forgot my ssh passphrase [closed] - linux

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am moving to an Apple Mac and i copied my id_rsa and id_rsa.pub files across to my new machine. When i tried to connect to remote machine over ssh it asked me to enter my password for the ssh key and I have forgotten what it is.
I used a python script to try and get it from my gnome keyring on the old machine i am migrating from but it didn't seem to be in there.
Any advice would be most welcome.

If you forget your old passphrase, you will have to destroy the existing key pair and generate a new key pair using ssh-keygen.

Related

How can add SSH key in gitlab? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am trying generate and add ssh key to gitlab to access my old project to my new machine please give me proper work flow thanks
Please follow the link
command for generate:
ssh-keygen -t rsa -C "your.email#example.com" -b 4096
command for copy:
pbcopy < ~/.ssh/id_rsa.pub
You must search the internet before posting
It is important that you search the internet before posting a question. Nevertheless, I have seen many new users making this mistake. Follow this link and take care of it in future.

How is it possible that I can use LastPass from more than one computer? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Tell me if I'm wrong: LastPass can never see my passwords, because they are encrypted with a key that stays in my own computer?
Then how is it possible that I can use my passwords from another computer?
My only guess is that the key is the password I use to login to LastPass, or at least it is generated based on it, so it is related in some way. So when I login to LastPass from another computer, they key same key is created in that computer.
The key is derived from a password you input. They use PBKDF2 with a user defined number of iterations according to their website.

Sign script in Linux for SSH access [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want grant user rights to copy a specific file from a remote server via SSH. And I do not want to give him any opportunity to execute something else on a remote server.
I have an access to a remote machine but I'm not an adimistrator, and I want to give another user possibility to copy specific file but nothing else.
Is there any way to sign a script in linux to avoid modification of this script or something similar that could help?
There is a solution to restrict SSH run only specific command:
http://chihungchan.blogspot.com/2008/08/restrict-ssh-to-run-specific-command.html

Is it possible to clean a Linux VPS using the shell? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Sometimes my friend give me root access to his CentOS VPS to help him install some programs and he leaves. Sometimes I mess with it, but I don't have the login information for Parallels Virtuozzo Containers, so can I clean the VPS using SSH?
It's faster than formatting the VPS and re-installing the OS.
You could always take a backup before you being work and revert the changes after the face. rsync is one potential tool you could use to do this.

How to move files from a computer connected via SSH to a VPS? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I know that scp is frequently used to move files between servers, but I'm not sure how I can reference my computer as a server. If scp is the right command to do this then what am I missing?
Just scp /some/local/file youruser#yourremoteserver:/remote/path
Reverse the two arugments to copy a remote file to local.

Resources