Questions tagged [public-key]

283 questions
-1
votes
2 answers

Add ssh public key to group instead of users on centos 6.5

I am a newbie to linux administration. I have a box with centos 6.5 x64. Ive been configuring ssh access via public/private key. Ive been wondering if I could add the public key to a user group instead of a user (in the /home/username…
Yash
  • 143
  • 6
-1
votes
1 answer

Will an established ssh connection survive a DNS migration?

If I add an ssh pubic key to a server using ssh-copy-id: ssh-copy-id -i ~/.ssh/my_id.pub user@server123.com Will I still be able to connect to the server using the hostname server123.com if the hostname changes to myproductionsite.com, or will I…
user4984
  • 123
  • 4
-1
votes
2 answers

ssh use public-key authentication

I use public-key authentication with secureCRT to login linux server and turn off password authentication at these server: 1.Create the keypair(openssh key format) with SecureCRT. 2.Cat the public key named identity.pub to the…
glancesx
  • 91
  • 1
  • 1
  • 2
-2
votes
1 answer

Installing EC2 .pem publickey to Debian ssh

I recently generated a publickey (.pem) from an EC2 instance, used ssh-add to add the key to my local machine. The IdentifyFile in the Host entry at /etc/ssh/ssh_config points to the .pem file at ~/.ssh. As noted in the AWS guide, I used chmod to…
-2
votes
2 answers

Ansible: imposible to connect to server SSH Error: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)

I have set up some ansible roles to configure a php web server. I use vagrant to my working copy and it works perfectly. But when I want to connect to a remote server I get this error: fatal: [xxxxxxx] => SSH Error: Permission denied…
petekaner
  • 99
  • 1
  • 5
-2
votes
3 answers

Permission denied (publickey) for my AWS EC2 instance from another computer

I have a public key file say dummy.pem and i copied this to another computer from where i need to access my EC2 instance. But it says @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! …
-2
votes
3 answers

How to connect to a SFTP

Got a SFTP Hostname username password from someone and he gave me a Server RSA public key fingerprint like this: d2:h4:h5:gf:f4 etcetera. But how do i need to connect to this host, doesnt this fingerprint key need to be in a file? I already tried…
Nuri Ensing
  • 101
  • 2
-2
votes
1 answer

EC2 key pair authentication

I've created a custom ec2 ami image and trying to authenticate aws instance by using ec2 key pair authentication for a user USERVM by following below steps. ami creation . ec2-run-instances ... create a private key using ec2-create-keypair. …
-2
votes
2 answers

SSH using ssh_key from a different account

Is there a way for a user to ssh as a different user using ssh_keys? For example, i have host A B and C. User X SSHes from A to B as himself ( A -- as X --> B ) Now the user wants to SSH to C from B but as a diff account ( Y ) B --- as Y ---> C I…
broun
  • 187
  • 2
  • 2
  • 8
-2
votes
2 answers

Is uploading your openssh public key to ~/.ssh/ for a given user safe?

I like to upload my public key (eg: ~/.ssh/id_rsa.pub) to various servers that I connect to on various networks for work. I use this same public key on github. If I am on a shared user account and I put my public key there, can someone just take it…
Zombies
  • 515
  • 2
  • 6
  • 13
-2
votes
2 answers

the theory of SSH public and Private key and its application in realworld machines

there. In this question, I have a very specific one about public and private keys. So Public keys should be put on the opposite side. For example, if we have a server, the public key of the server should be put in the user's machine And the user's…
Sina M
  • 3
  • 1
-2
votes
1 answer

Management of password disable server

This question is just for curiosity. I am studying a bit of server administration and have seen many people saying that having passwords is a bad idea and they should be disabled. But my question is: if the passwords are disabled and the admin…
-3
votes
3 answers

Public Key authentication fails while using the -i parameter on ssh command

I have to do public key based authentication on two Linux servers. Machine 2 (192.168.3.132) username: vfx_30 home dir: /home/vfx_30 ssh keys: /home/vfx_30/.ssh/id_rsa /home/vfx_30/.ssh/id_rsa.pub Machine 1 (192.168.3.131) vfx_30 user's public…
Srini Vasan
  • 9
  • 1
  • 3
1 2 3
18
19