All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
40 views

Can not SSH to GUI Ubuntu on Login Screen

I have a laptop with Ubuntu installed, and I've set up SSH using a key, and everything was working fine (I could SSH into the laptop from another computer). Then, I rebooted the laptop, and on the ...
Thuannb96's user avatar
1 vote
1 answer
889 views

Adding my SSH key to new user with only SSH access through key

I'm quite new to this, and I've looked through questions but haven't found one that quite matches my problem, or rather I didn't sufficiently understand them to be able to solve this issue. I have a ...
Jack Avante's user avatar
0 votes
0 answers
50 views

how to use systemctl with pem file for remote commands

I am wondering an anyone tell me how to use a pem file with the systemctl command in order to be able to issue a remote command whilst logging in using the pem? I am running it on Ubuntu 22.04 ...
Thomas's user avatar
  • 1
0 votes
2 answers
422 views

After install last version on ubuntu server 22 i can`t make ssh key connect to remote server

I did all the steps to create the key as I normally do: ssh-keygen -t ed25519 next ssh-copy-id -i /home/derbauer/.ssh/id_rsa.pub -p 12122 [email protected] here everything goes normally But in the ...
Petar Petrov's user avatar
0 votes
2 answers
5k views

How to use ssh-copy-id on remote server?

I have an ec2 instance which I can connect using this command with the ssh_key.pem file I have. ssh -i ssh_key.pem [email protected] I am trying to use ssh-copy-id to add the public key I have on ...
uday kiran reddy's user avatar
3 votes
0 answers
3k views

Using SSH key for install npm module from private repository inside docker

I make container for nodejs project. Inside the project I am using private repository. I need an access to it. For that I am using next Dockerfile FROM node:15 RUN echo "StrictHostKeyChecking no&...
Eugene's user avatar
  • 157
2 votes
0 answers
1k views

kex_exchange_identification: Connection closed by remote host

Trying to connect to web servers running on Centos 7 via jump server, earlier this connection used to work fine without any problems, but not sure now what went wrong. Following is the status $ ssh -...
Joel Divekar's user avatar
0 votes
2 answers
128 views

SSH wont log into VPS using DNS

I'm working on a Virtual Machine where I have Ubuntu Server, in that server I connect to my cloud server (ubuntu), via ssh , but when I tried to log in with this syntax: ssh subdomain.example.com It ...
k0r3n's user avatar
  • 1
0 votes
0 answers
126 views

SSH connection strange behavior

I am using windows10 and I can connect to my server(Ubuntu 18.04) with PowerShell and Putty. but not with the other two ssh client I have (MobaXtrem,Bitvise). but when i turn on my VPN(SeedVpn) on ...
fristhon's user avatar
-1 votes
1 answer
369 views

How to uninstall ssh-keygen utility safely? [duplicate]

I am being tasked to remove ssh-keygen from Ubuntu servers and I don't want to break the computer. Can you please help, how to uninstall ssh-keygen utility safely? Thanks
Bhalu's user avatar
  • 3
0 votes
1 answer
2k views

How to login to a Linux server without SSH key?

I had setup a SSH key to login into my linux server but the SSH public and private key have now been deleted from my personal computer. How can I login into my Linux server with the username and ...
Rasik's user avatar
  • 109
1 vote
1 answer
1k views

Why does a new Google Compute Engine Instance has pre-created user accounts?

Upon creating a new Ubuntu instance on GCP (from the official 18 LTS image), I noticed that it already has a few users in the /home folder. These are user names that I've created in the past on ...
Jack C's user avatar
  • 11
0 votes
2 answers
1k views

Permission denied, please try again ( Ubuntu )

Actually I already have tried everything as dicussed in SSH Permission denied (publickey) and Unable to ssh to GCE: “Permission denied (publickey), But none resolved the issue. I am able to ssh into ...
Muhammad Rafique's user avatar
1 vote
2 answers
762 views

How are hackers getting into our server without brute-force? [duplicate]

I am a web developer and we have no one specialising in the wellbeing of the server or the network currently at our office. Usually I can sort many of the issues that arise with my basic knowledge but ...
Emma's user avatar
  • 11
0 votes
1 answer
33 views

Aws Ubuntu access lost, while creating new user

I had created a new user ( disable password command) on my instance. while giving him access somehow i have edited file at etc/ssh/sshd_config at line 33 #AuthorizedKeysFile %h/.ssh/authorized_keys /...
AHSAN KHAN's user avatar
0 votes
1 answer
159 views

redo ssh private key

I switched laptops recently and didn't transfer my keys over correctly. I was trying to ssh into my dns server but unable to. When I would go to ssh in after sending a new key based on This tutorial,, ...
Strongthany's user avatar
0 votes
1 answer
2k views

Cannot ssh to ubuntu gcp instance

I migrated the vm from libvirt to Google Cloud Platform using Cloudendure. The initial sync is complete and is in Data Replication stage from over a week. Once the VM is launched using test mode and ...
user avatar
1 vote
1 answer
74 views

Will converting format of private ssh key affect server?

I'm interested in setting up some basic security on an ubuntu 16.4 vps that I'm working on. I'm reading through https://www.codelitt.com/blog/my-first-10-minutes-on-a-server-primer-for-securing-ubuntu/...
user1592380's user avatar
0 votes
1 answer
5k views

Ansible can't git clone from enterprise git server

Hi I have enterprise git server where I created a private test-repo and added a ssh-key on the deploy ssh key form. I defined a git role in my common roles which is having below yml definition. --- -...
Shailesh Sutar's user avatar
0 votes
1 answer
85 views

OpenSSH key authentication only possible if password access is enabled

I am running Ubuntu 16.04 0 as a headless server. I have setup key authentication to access the server through Putty. I used Putty keygen to generate a 4096 bit key, popped that onto the server and am ...
Squid_Vicious's user avatar
1 vote
1 answer
2k views

Linux to Windows SSH authorized_keys

I want to connect into a Windows Box from my Ubuntu PC via ssh using key authentication but I don't know how to do it. I've tried to send the id_rsa.pub to Windows and then rename it to ...
Pavel Razgovorov's user avatar
-1 votes
2 answers
3k views

How to stop ssh login from prompting for password?

I was running an Ubuntu 14.04 server with SSH enabled and password login turned off. I accidentally fubared the permissions to my ~/.ssh directory, effectively locking me out. I managed to use a ...
Cerin's user avatar
  • 3,600
0 votes
0 answers
311 views

Connect with SSH: Permission denied (publickey)

I've set up a user with a home directory like this: |- .ssh/ |-- authorized_keys I've added the private key to my local bash, and the public key to the authorized_keys file on the remote machine. I ...
ptf's user avatar
  • 101
0 votes
1 answer
4k views

ssh: Could not resolve hostname add: Name or service not known

I created non-sudo user and I can't add ssh key while logined with it: % ssh -vvv add ~/.ssh/mykey OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh_config ...
d9k's user avatar
  • 123
0 votes
2 answers
3k views

useradd --disabled-password can't ssh using authorized keys

I might've done this wrong. I created a user with : sudo adduser --disabled-password userX And I've added a public key to /home/userX/.ssh/authorized_keys. But when I ssh into the account I get the ...
D.Mill's user avatar
  • 379
0 votes
2 answers
448 views

One SSH Key for multiple Ubuntu servers + Windows + Teamcity

I want to use the same SSH key to access multiple Ubuntu servers. The reason for this is that I want to deploy our application in DEV, STAGING, PROD, LOCAL environments through a CI server. We use ...
JavaDev_007's user avatar
14 votes
1 answer
26k views

AuthorizedKeysFile line commented out but still seems to work

I'm setting up a server on Linode and following their Securing Your Server guide. They recommend setting up ssh key pair authentication. I have already uploaded my public key to server and the key ...
Adam Johns's user avatar
7 votes
2 answers
2k views

Using ssh key pair authentication and disabling ssh password authentication - what happens if private key lost?

I'm configuring my first server on Linode and going through their set up tutorials. In their Securing Your Server tutorial, it recommends using ssh key pair authentication and disabling password ...
Adam Johns's user avatar
1 vote
0 answers
225 views

why does having ~/.ssh/id_rsa.pub cause GUI dialog asking for SSH password even though SSH_ASKPASS is empty?

How the problem started For some reason I did not have my id_rsa.pub file in ~/.ssh. So I copied it off one of my servers to ~/.ssh/ on my machine... so that I have it, so I can copy it to servers ...
user1862165's user avatar
0 votes
1 answer
123 views

Server connects without passphrase via putty but asks for passphrase from the native command line?

I am trying to connect to an EC2 instance and it has a .ppk security key. I am not an expert on server frankly and I am still try to figure things out by trail and error. I usually connect to my ...
Rohan's user avatar
  • 135
2 votes
1 answer
10k views

SSH failing to connect, No supported key exchange algorithms

There are numerous questions with the same title however none of the solutions apply to my issue. I get the following lines of error in my sshd log: Jan 6 21:57:55 <computer name> sshd[30103]: ...
Arijoon's user avatar
  • 129
0 votes
1 answer
86 views

Is my private key safe if I use authenticaiton agent forwarding with the ssh -A option?

I love the option to connect to servers via SSH with the -A option, so I can use my private keys on the server. This lets me update git/svn repositories and connect to other servers without the need ...
The Shurrican's user avatar
5 votes
2 answers
2k views

AWS connection error: Permission denied (publickey)

Sorry if this sounds redundant to you but trust me its not. I have tried almost majority of the links related to this problem but nothing is working for me so far. I even tried this article two. Below ...
Waqas Jamal's user avatar
-1 votes
2 answers
751 views

Putting My RSA Public Key on RSA Key-Secured Server

Hello and thanks for reading, Basically, I'm taking over for someone on some system admin duties, learning as I go, but one problem I've run into is not having my public RSA key put onto a particular ...
Anon's user avatar
  • 1
1 vote
2 answers
3k views

Keypair with Shellinabox?

I've got an Amazon EC2 instance with a keypair, and I want to setup shellinabox so I can ssh from any web browser. However, shellinabox only seems to allow password logins and I wasn't able to find ...
Huey's user avatar
  • 113
0 votes
2 answers
809 views

SSH config (~/.ssh/config) - advanced configuration

UPDATE: Just to confirm more about my setup in case it wasn't clear: No private keys are ever shared anywhere. (1) Human programmers using Mac each have one SSH key (in ~/.ssh/id_rsa) that they use ...
user2143356's user avatar
0 votes
1 answer
575 views

My new ubuntu server has ssh_host_ecdsa_key and ssh_host_rsa_key files on it already, is this normal?

I have a new dedicated server, which I currently access with username and password over ssh. I have not yet set up an ssh key. I am just looking into it now. So this is a new server with ubuntu ...
user203834's user avatar
1 vote
1 answer
99 views

ssh keys from mac to ubuntu 12 lts

I am attempting to set up a scenario in which I do not require to submit a password to ssh into an ubuntu machine from a mac. This is procedure i have been following: 1 - Open a terminal in your mac ...
John's user avatar
  • 887
2 votes
1 answer
550 views

OpenStack EC2 Ubuntu cloud image -- SSH host keys were changed after emegency reboot

Recently one of our servers was hanged due to IPMI BMC failure. It is CentOS 6.3 OpenStack compute host serving KVM vitual machines with qcow2 backend. There was running a VM based on EC2 Ubintu ...
Veniamin's user avatar
  • 863
1 vote
1 answer
745 views

SSH: Unable to login with key after disabling password authentication

I have an ubuntu server is on Amazon EC2. Earlier I used to login with the original pem key file generated at instance launch time. ssh -i /path/to/key.pem [email protected] I tried to ...
Neo's user avatar
  • 265
1 vote
3 answers
1k views

Disable Password Authentication for Remote Users Only

I've read how it is possible to disable password authentication on an Ubuntu server. However, is it possible to disable this for remote users only? I'm afraid that, if I enable this both locally and ...
LonnieBest's user avatar
  • 1,508
10 votes
2 answers
22k views

SSH host key seems to be changing unexpectedly

I rolled out a new /etc/ssh/sshd_config with Puppet on an Ubuntu 12.04 test server. The config was exactly the same as the previous config, except it had removed the following line: HostKey /etc/ssh/...
Ben's user avatar
  • 103
4 votes
2 answers
231 views

do SSH keys have to be unique to the service they are used for?

I just created a virtual server (or, in the language of Digital Ocean host, a 'droplet') for the first time. Digital Ocean has an instruction page about SSH keys https://www.digitalocean.com/ssh_keys ...
Michael 's user avatar
1 vote
2 answers
197 views

Why cant I ssh into my ubuntu server? (ssh_exchange_identification error) [duplicate]

I am trying to ssh into my ubuntu server (which I have done many times before) and I get the error: ssh_exchange_identification: Connection closed by remote host ssh -vvv shows the following: ...
Bob Flemming's user avatar
  • 1,265
5 votes
3 answers
4k views

Is there an easier way to add public-key authentication for new users?

I am in the arduous and painful process of setting up secure users on a new web LEMP server with Ubuntu 12.04. I was initially going to setup something like vsftpd or proftpd but many have suggested ...
JM4's user avatar
  • 1,144
3 votes
4 answers
8k views

Why is SSHD hanging at "Server accepts key"

I've been ssh'ing to this box without problem for a year using public-key authentication. No changes have been made to the client or server's ssh config. Now, ssh connections never complete or fail, ...
JivanAmara's user avatar
0 votes
1 answer
3k views

ubuntu - public-key for authentication

I have a master and slave cluster. I am setting up cloudera manager. On the master I created a passwordless key using the following. ssh-keygen -f id_rsa -t rsa -N '' eval `ssh-agent` ssh-add ~/....
Tampa's user avatar
  • 338
0 votes
1 answer
466 views

Write permissions of www-data user and public key issue

I am using Ubuntu and I am having the following problem. I am using a PHP function called exec to get the latest git changes from my remote repo. E.g.: exec("git pull");. The file is placed in /var/...
edwardmp's user avatar
  • 148
4 votes
1 answer
8k views

ubuntu 12.10/linux mint 14 ssh-copy-id doesn't work and returns Ambiguous output redirect

I recently got a new computer and I'm trying to use ssh-copy-id to put my keys on another server so I can login without password. but when I try ssh-copy-id -i ~/.ssh/id_rsa.pub user@server and ...
Marc's user avatar
  • 143
0 votes
2 answers
205 views

Disabling password login for certain users for SSH

I added this to the bottom of the sshd_config file Match User user PasswordAuthentication no Then I restarted SSH, and when I went to go SSH into my server I got the error Permission denied (...
Max00355's user avatar
  • 133