New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Permission denied (publickey).


Post Reply New Thread Subscribe

 
Thread Tools
piduruviswa

 
Member Since: Mar 27, 2008
Posts: 3
piduruviswa is on a distinguished road

piduruviswa is offline
Hi Everyone,

This site is really impressive lot of useful info. I am a new user (Just registered ). I have started using mac from few days. I am struck on some problem if some one had encountered/aware of this please help

I am trying to install a database. From terminal I have logged in as root user and have added the hostname in the /etc/hostconfig file. After which I tried connecting through ssh to the user "Viswanath" I got the below error

sh-3.2# hostname
Viswanath

sh-3.2# ssh Viswanath@Viswanath
Permission denied (publickey).

sh-3.2# ping Viswanath
PING Viswanath (216.255.187.213): 56 data bytes
^Z
[2]+ Stopped(SIGTSTP) ping Viswanath

sh-3.2# ssh Viswanath@216.255.187.213
Permission denied (publickey).

In the database which I am installing there is a step which I am supposed to execute during which it started asking me (Pls find the log below) for the password continuously even after entering the password. Then to check if I could login to my user using ssh I followed the above process even that didn't work

sh-3.2# gpssh-exkeys -h Viswanath
/usr/local/greenplum-db-3.1.1.1/bin/lib/paramiko/pkey.py:28: RuntimeWarning: Python C API version mismatch for module Crypto.Cipher.DES3: This Python has API version 1013, module Crypto.Cipher.DES3 has version 1012.
from Crypto.Cipher import DES3
/usr/local/greenplum-db-3.1.1.1/bin/lib/paramiko/transport.py:53: RuntimeWarning: Python C API version mismatch for module Crypto.Cipher.Blowfish: This Python has API version 1013, module Crypto.Cipher.Blowfish has version 1012.
from Crypto.Cipher import Blowfish, AES, DES3
/usr/local/greenplum-db-3.1.1.1/bin/lib/paramiko/transport.py:53: RuntimeWarning: Python C API version mismatch for module Crypto.Cipher.AES: This Python has API version 1013, module Crypto.Cipher.AES has version 1012.
from Crypto.Cipher import Blowfish, AES, DES3
[STEP 1 of 5] create local ID
... /var/root/.ssh/id_rsa file exists ... skipped

[STEP 2 of 5] keyscan all hosts and update known_hosts file
# Viswanath SSH-2.0-OpenSSH_4.5p1 FreeBSD-20061110
no hostkey alg

[STEP 3 of 5] copy public key to remote host
... send to Viswanath@Viswanath
***
*** Enter password for Viswanath@Viswanath:
[ERROR Viswanath@Viswanath] Unknown server Viswanath
***
*** Enter password for Viswanath@Viswanath:
[ERROR Viswanath@Viswanath] Unknown server Viswanath
***
*** Enter password for Viswanath@Viswanath:
[3]+ Stopped(SIGTSTP) gpssh-exkeys -h Viswanath

I also tried creating a new user from the system preferences--> accounts and then tried connecting through ssh but all my tries went in vain.

sh-3.2# ssh gpadmin@Viswanath
Permission denied (publickey).

If some one is aware of the solution please help.

Thanks & regards
Vish
QUOTE Thanks
piduruviswa

 
Member Since: Mar 27, 2008
Posts: 3
piduruviswa is on a distinguished road

piduruviswa is offline
Hi All,

The issue is solved. Need to change the permissions for ssh folder also /etc/hosts file need you add
127.0.0.1 hostname...

Later which it worked...

Thanks & Regards
Vish
QUOTE Thanks

Post Reply New Thread Subscribe


« C++ AI in Xcode | Problem while trying to compile parser generator code through "yacc" or "bison" under »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
What to use for a FIND command? bdmsb OS X - Operating System 23 03-24-2008 04:42 PM
Cell phone permission issues with Macbook MadGasser Other Hardware and Peripherals 0 01-26-2008 08:25 PM
Main Menu Maintenace scripts bobtomay OS X - Operating System 4 12-02-2007 04:43 PM
Terminal in 10.3 denies permission James Bee OS X - Operating System 3 05-17-2007 12:22 AM
changing directory permission problem almadrubuntu OS X - Development and Darwin 1 12-15-2005 10:22 PM

All times are GMT -4. The time now is 07:49 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?