The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Enterprise Unix Roundup: The Ghost of Unix Future - Server Watch iBot UNIX and Linux RSS News 0 12-19-2007 08:20 AM
Running UNIX commands remotely in Windows box from Unix box – avoid entering password D.kalpana UNIX for Dummies Questions & Answers 1 04-20-2007 02:24 AM
FTP script for sending a file from one unix directory to another unix server director raja_1234 Shell Programming and Scripting 1 11-30-2006 03:57 AM
Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!! haggo Filesystems, Disks and Memory 2 08-23-2006 08:39 AM
Unix History Question: Why are filenames/dirnames case sentsitive in Unix? deckard UNIX for Dummies Questions & Answers 3 03-26-2005 09:59 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-22-2008
Registered User
 

Join Date: Jan 2008
Posts: 20
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
SCP from UNIX to AIX

Hi,
I want to use SCP to transfer files from HP - UNIX to IBM AIX

I have generated keys using ssh-keygen -t rsa on the UNIX box.

I have copied the public key to the AIX box to the HOME_DIR of the user /.ssh/ authorized_keys

When i try to use SCP it is still asking for a password. Please help me.

When i do the same to another HP-UNIX its working fine.

Thanks
Vijay
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-22-2008
DukeNuke2's Avatar
Soulman (Moderator)
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,125
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
is the use of keys allowed in the sshd config file?

PubkeyAuthentication yes
PasswordAuthentication no
HostbasedAuthentication no
Reply With Quote
  #3 (permalink)  
Old 04-22-2008
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 932
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
A frequently made error is to copy the key by means of X-Windows copy & paste. This way the quite lengthy line with the key gets split up into several lines and if the windows are of the same size it looks ok - but isn't.

bakunin
Reply With Quote
  #4 (permalink)  
Old 04-22-2008
Registered User
 

Join Date: Jan 2008
Posts: 20
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Thanks

Thanks for the replies.
I hope we need to enable in the Cofig file for Authentication.

It means we have to enable Yes in the IBM AIX box right.
PasswordAuthentication Yes
Reply With Quote
  #5 (permalink)  
Old 04-22-2008
Registered User
 

Join Date: Jan 2008
Posts: 20
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
sshd file???

In which path we will have the sshd config file On the UNIX and on the AIX
to change the yes no status
Reply With Quote
  #6 (permalink)  
Old 04-22-2008
DukeNuke2's Avatar
Soulman (Moderator)
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,125
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
i can only look at solaris... path under solaris 10 is "/etc/ssh/sshd_config"
Reply With Quote
  #7 (permalink)  
Old 04-22-2008
Registered User
 

Join Date: Jan 2008
Posts: 20
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
One more....

I see
PasswordAuthentication yes
on the UNIX side and I beleive it should be Yes only as i am able to transfer to another UNIX box with the same configuration without a prompt for password.

Please confirm me if i need to make that Yes on the AIX server also inorder for the SCP no to ask password when i do SCP.

Thanks
Vijay
Reply With Quote
  #8 (permalink)  
Old 04-22-2008
era era is online now
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,252
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Another thing which would be good to get ruled out is incompatible SSH versions. OpenSSH and ssh.com SSH are compatible on the protocol level but use different configuration file formats and key file formats. If you telnet to port 22, do you see OpenSSH in the banner? (Type in some random junk and the remote host will terminate the connection when the handshake fails.)
Reply With Quote
  #9 (permalink)  
Old 04-25-2008
Registered User
 

Join Date: Oct 2007
Posts: 5
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Clarification: you said you are being asked for a 'password'.

Do you mean it's asking for your unix password or is asking you for your SSH passphrase? If it's the latter, this would be expected.

If you don't want to have to enter the SSH passphrase, you can run the ssh agent.

Also, you can set password authentication to no (don't allow failback to unix passwords) if you want.
Reply With Quote
Google UNIX.COM
Reply

Tags
solaris

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash for loop boot: cannot open kernel/sparcv9/unix command copy/move folder in unix curses.h cut command in unix daemon process find grep find mtime find null character in a unix file glance unix grep multiple lines grep or grep recursive gzip password hp-ux ifconfig inaddr_any inappropriate ioctl for device lynx javascript mailx attachment mget mtime ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude tar extract to folder test: argument expected unix unix .profile unix forum unix forums unix internals unix interview questions unix mtime unix simulator unix.com vi substitute while loop within while loop shell script


All times are GMT -7. The time now is 02:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101