Re: [CentOS] google cloud compute with PEM file

2016-05-17 Thread Dustin Kempter



On 5/17/16 2:43 PM, Frank Cox wrote:

On Tue, 17 May 2016 14:34:03 -0600
Dustin Kempter wrote:


Enter passphrase for key '/home/test1/my-key.txt':

Since your private key is encrypted, have you entered the passphrase for the 
private key when asked at this point in the login?


Yes I did
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] google cloud compute with PEM file

2016-05-17 Thread Dustin Kempter



On 5/17/16 2:12 PM, Frank Cox wrote:

On Tue, 17 May 2016 13:59:18 -0600
Dustin Kempter wrote:


  Is there something  I missed?

ssh -v serveryouwanttoconnectto

That will tell you what the problem is.

If you don't understand the output, post it here.


Here is the command and output


[test1@pgpool1 ~]$ ssh -v -i /home/test1/my-key.txt upload@144.167.188.62
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 104.197.158.61 [104.197.158.61] port 22.
debug1: Connection established.
debug1: identity file /home/test1/my-key.txt type 1
debug1: identity file /home/test1/my-key.txt-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '104.197.158.61' is known and matches the RSA host key.
debug1: Found key in /home/test1/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: 
publickey,gssapi-keyex,gssapi-with-mic

debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information
Credentials cache file '/tmp/krb5cc_501' not found

debug1: Unspecified GSS failure.  Minor code may provide more information
Credentials cache file '/tmp/krb5cc_501' not found

debug1: Unspecified GSS failure.  Minor code may provide more information


debug1: Unspecified GSS failure.  Minor code may provide more information
Credentials cache file '/tmp/krb5cc_501' not found

debug1: Next authentication method: publickey
debug1: Offering public key: /home/test1/my-key.txt
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type 
Enter passphrase for key '/home/test1/my-key.txt':
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
[test1@pgpool1 ~]$

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] google cloud compute with PEM file

2016-05-17 Thread Dustin Kempter



On 5/17/16 10:47 AM, Tony Mountifield wrote:

In article <573b48c8.1070...@consistentstate.com>,
Dustin Kempter  wrote:

Hi all,
  I am using the google cloud compute engine and we have a client
that does not want to share their ssh keys. So I have been attempting to
set up a PEM file for ssh access. Both the local server I used for
testing and the cloud vm are centos 6.

I created a user on the cloud box, ran "ssh-keygen -t rsa" and took the
defaults. I then copied the id_rsa.pub file to the local centos box,
renamed it then made my test user the owner of the file. I then
attempted to connect to the user I created on the google cloud box with
the PEM file as shown below, but got the following error.

[test1@pgpool1 ~]$ ssh -i /home/test1/my-key.txt upload@815.677.151.45
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

Have any of you done this successfully before? Or know what the issue
may be?

Try adding -v to the ssh command, to get more information.

But also, on the server you are trying to log in to, the public key
needs to be copied into ~/.ssh/authorized_keys - not left in its own file.

Also make sure that the ~/.ssh/directory is owned by the user and has
permissions of 700.

Cheers
Tony



Thank you! I added the authorized keys on the server I am trying to 
connect to and now when I run the same command on the test server it is 
asking me for the passphrase, as I did not set one I just hit enter and 
then get the same permission denied error as before. Is there something 
I missed? permissions are correct for sure on the google cloud server 
that im trying to connect to. The key file on the test server is set to 0600


Thanks in advance!

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] google cloud compute with PEM file

2016-05-17 Thread Dustin Kempter

Hi all,
I am using the google cloud compute engine and we have a client 
that does not want to share their ssh keys. So I have been attempting to 
set up a PEM file for ssh access. Both the local server I used for 
testing and the cloud vm are centos 6.


I created a user on the cloud box, ran "ssh-keygen -t rsa" and took the 
defaults. I then copied the id_rsa.pub file to the local centos box, 
renamed it then made my test user the owner of the file. I then 
attempted to connect to the user I created on the google cloud box with 
the PEM file as shown below, but got the following error.


[test1@pgpool1 ~]$ ssh -i /home/test1/my-key.txt upload@815.677.151.45
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

Have any of you done this successfully before? Or know what the issue 
may be?


Thanks in advance


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] gpg decryption error from only 1 user

2015-09-17 Thread Dustin Kempter

Hi all,
I am having an issue. We have a vm that has encrypted data 
with gpg. The vm is centos 6.5 and it has multiple users. user1=bob 
user2=kevin user3= postgres user4=root. Only postgres has access to the 
file in which we keep the encrypted data. I as root will su - postgres, 
cd that data dir, and use this command "gpg -d (file_name)" and it works 
just fine. However the user1 "bob" will sudo su - postgres (have an 
entry in sudoers file to allow) and become postgres, cd to the dir with 
the data, run this same command "gpg -d (file_name) however it gives 
this error


gpg: CAST5 encrypted data
can't connect to `/home/postgres/.gnupg/S.gpg-agent': No such file or 
directory

gpg-agent[6153]: command get_passphrase failed: Operation cancelled
gpg: cancelled by user
gpg: encrypted with 1 passphrase
gpg: decryption failed: No secret key

I really do not understand whats going on here. I have tried deleting 
the user bob, and re creating it in case of some sort of corruption but 
still the same issue. We also see an issue where I installed screen. as 
any user but bob I can create or join. But as bob I get this error 
"Cannot open your terminal '/dev/pts/2' - please check."Also I, as 
superuser did this

su - bob
sudo su - postgres
cd data dir
gpg -d (file_name)

works with no issues, please help me debug this I am out of ideas.

thanks in advance
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Xen4CentOS on Centos7?

2015-05-22 Thread Dustin Kempter
Hi all, 
Looking to move from VMware to Xen4CentOS. We currently run Centos7 as our 
servers main distort. All the documentation I’ve found on the Xen4CentOS only 
refers to Centos6. Do any of you know if it currently or is being developed to 
work with Centos7?


thanks in advance
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] centos7 raid

2014-11-25 Thread dustin kempter
hi all, is there any documentation out there about setting up a raid 
array in centos7?


thanks
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos