How can add SSH key in gitlab? [closed] - gitlab

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.

Related

Is there any way to protect a folder from other people? [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'm having some troubles with people getting in my folder. Is there any way to have a program that whenever I try to open a specific folder it asks for a password and won't let you see what's in that folder unless you have the password?
The easiest way would be to take advantage of the account system on your computer. Just make an account and password protect it. It will be like you have the whole computer to yourself. If you are unable to make an account of your own for some reason (I don't know the circumstances) i guess you could just throw everything in the folder into a 7zip. No one can get into one of those without a password.

Good practices for storing passwords needed for cronjob? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
The title basically says it all, what's a good practice for storing passwords that are needed by a cronjob?
For example if you want to run a cron periodically ssh'ing into another machine, you don't just put the user and password plain in the bash script, do you?
ssh is of course a bad example because you could use a keypair, but maybe you get where I'm trying to get at. Store the password in a file encrypted with openssl? But when you look at the script that encrypts the file, you clearly have all information to just decrypt it.
I have wondered this for quite a while now, and never could I come up with an answer, any ideas appreciated.

Shell script - Read content on Server#1, process on Server#2 [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 8 years ago.
Improve this question
I need to work on a current logfile, hosted on Server#1, without being ON Server#1.
How can I read the content, to get scripts process on an other machine (Server#2)
I don't want Server#1 to be impacted by my scripts.
Use ssh to get the log file contents, and pipe it to the script running locally:
ssh Server1 cat logfile | path/to/script
scp, netcat, FTP, rsync... you have so many options.

get files with wget and SFTP [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
Hello guys...
I have a script running every night on a linux server, which intend to get files from another one using wget and ftp protocol. These files are located under a folder that can't be accessed through HTTP.
Here's the command line used :
wget --directory-prefix=localFolder ftp://login:password#adress.ip.of.server/path/*
The site access has been changed to SFTP. I would like to modify the script to be able to get the files just as it was doing before, but don't manage to do this with SFTP.
I tried to generate a secure key using ssh-keygen and then copy it to the server I wanted to access, but it didn't make it, or I just don't succeed to find the right way to do it...
Thanks ahead for your help ! :)
To copy keys, I find that ssh-copy-id user#machine does all you need. As long as you have a key on your machine that is.
I also use scp quite a bit, where you specify scp user#machine:filespec whereto (it is using the same encryption and authentication mechanism as sftp).
Hope this helps.

I forgot my ssh passphrase [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 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.

Resources