Skip to main content

All Questions

Tagged with
1 vote
0 answers
147 views

I'm having trouble connecting to the Colab server via SSH

Attemptiing to set up an SSH tunnel to a Google Colab instance using Ngrok. However, it encounters a ConnectionRefusedError, indicating that Ngrok is unable to establish a connection. This could stem ...
Jhngir Khn's user avatar
0 votes
1 answer
301 views

How to resolve BadHostKeyException with paramiko? [duplicate]

I have following code to connect to a linux box and run a command, But I'm facing BadHostKeyException even after I have added WarningPolicy and AutoAddPolicy. print("---CCCCCCCCCCCCC--...
mac's user avatar
  • 940
0 votes
1 answer
287 views

How can I get ssh keys from servers using ansible?

I want to get all ssh public keys from servers using loop_control.loop_var. Playbook will alternately go to the home folder of all users and get the keys I started using this construct, but then I don'...
Gg59's user avatar
  • 1
-1 votes
1 answer
2k views

No password hashes loaded in JohnTheRipper

I'm trying to crach ssh password with john, but there's an error, and I can't find the answer to solve it firstly I use ssh2john.py: python3 ssh2john.py id_rsa > id_rsa.hash then john: john --...
askarr's user avatar
  • 9
-2 votes
1 answer
373 views

Scp file transfer from Mac laptop to Azure Ubuntu VM

I try to transfer a VHD.gz file from my Mac to an Azure Ubuntu virtual machine. From my Mac I've launched this command : scp path/to/XXXvhd.gz root@<Ubuntu_VM_IP>:/home/azureuser But I have this ...
jeandupont666's user avatar
0 votes
1 answer
81 views

Run a cmd from linux server as a different user [closed]

I have 2 service accounts SA1 and SA2. Currently my team has passwords of both accounts, I want to restrict them to have password of only service account (SA1). But team needs to access some logs ...
Vidhya Dhara's user avatar
3 votes
1 answer
983 views

Is it possible to check whether a server would accept a private key, based on having only its public key?

I am currently writing a tool which will be used to determine whether any of the servers that I manage currently trust any SSH private keys which are known to be compromised. I don't want to store the ...
user avatar
0 votes
0 answers
274 views

Linux automatically transfers files through scp without a password

I now want to know how to execute an instll.sh file, and then transfer the file to another vm regularly through scp without entering a password Here I define the party that transmits the file as vmA, ...
黃奕翔's user avatar
0 votes
1 answer
819 views

Force user to login with ssh key file

I have disabled the passwordAuthentication in ssh and I can only access ssh using the .pem key file. But I can log in to ssh using ssh 'user@host' I need to restrict a valid user login without the ...
Shanthini M's user avatar
-1 votes
1 answer
38 views

Own SSH key file to tie up for SSH access to a foreign Linux server [closed]

We are to have SSH access to client's Linux server for code installation and launch. As the client has given us FTP connection client has also said: "SSH access: Can you send me your SSH key. I ...
Igor Savinkin's user avatar
0 votes
1 answer
2k views

GitLab CI/CD Pipeline - Run Linux commands interactively on GitLab Runner

I am trying to provision and configure some Azure infrastructure using terraform which will be orchestrated via a GitLab CI/CD pipeline running off a GitLab Runner hosted on an Azure Linux VM. The ...
hitman126's user avatar
  • 961
0 votes
1 answer
445 views

GCP SSH keys gives sudo user access, how can we avoid it?

I have created 3 ssh key pairs for three users and they can ssh to a VM that is in on one of my projects on GCP. The problem is that all of these users have sudo access because when I execute the ...
Saeed's user avatar
  • 718
1 vote
1 answer
2k views

Misuse of shell builtins when adding an ssh key using ssh-add

I have a script.sh file which checks for loaded SSH agent and adds a key. If I run this script directly, it works but if I run it via some worker it doesn't unless I do those changes: This works: #!/...
numediaweb's user avatar
  • 17.1k
0 votes
1 answer
3k views

How do you avoid typing the password of your ssh key each time, on Linux and Windows with OpenSSH? [closed]

I use a password-protected ssh key (RSA). That means that I need to type the password to decipher the key before using it. I noticed that on some computers, I don't need to type the pass of my ssh key ...
Xiiryo's user avatar
  • 3,267
9 votes
3 answers
19k views

How to verify github SSH key

I want to verify that my SSH key in github matches the local file on my computer. The github key seems to be SHA256, encoded in base64, but my local key, encoded with this command doesn't seem to ...
andrey's user avatar
  • 1,595

15 30 50 per page
1
2 3 4 5
8