Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-21-2007, 07:12 AM   #1
LQ Newbie
Registered: Jun 2007
Posts: 2

Rep: Reputation: 0
ssh and passwd asked

i want to be able to execute some secured commands from windows to linux, like plink, psftp,...

server name:rangiroa

server name:java

server name:rac2

public and private key are generate on windows with puttygen.
public key is send on an AIX and linux servers in this file:
vi /home/fjaspart/.ssh/authorized_keys2 (on AIX)
ssh-rsa AAAAB3NXQsZpeJm0S1[...]WqM4s= Administrateur@rangiroa

vi /home/fjaspart/.ssh/authorized_keys (on linux)
ssh-rsa AAAAB3NXQsZpeJm0S1[...]WqM4s= Administrateur@rangiroa

commands executed from windows:
C:\>plink.exe -ssh fjaspart@java date
jeu 21 jun 14:04:46 DFT 2007

C:\>plink.exe -ssh fjaspart@rac2 date
fjaspart@rac2's password:
jeu jun 21 14:03:11 CEST 2007

passwd is asked when i try this command to linux.
Rights on files and directory are the same on aix and linux.

i didn't understand why passwd is asked for linux

ssh commands works fine from aix to linux, linux to aix and linux to windows, no passwd is asked

thenk you for help
Old 06-21-2007, 03:45 PM   #2
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 64
Check this link and make sure your permission atributes are correct using the chmod command mentioned.

Old 06-21-2007, 03:53 PM   #3
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,697

Rep: Reputation: 232Reputation: 232Reputation: 232
Moved: This thread is more suitable in Linux-Networking and has been moved accordingly to help your thread/question get the exposure it deserves.
Old 06-22-2007, 02:16 AM   #4
LQ Newbie
Registered: Jun 2007
Posts: 2

Original Poster
Rep: Reputation: 0

thank you Brian,
permission attributes are good:

[root@RAC2 ~/.ssh]#ls -al
total 64
drwx------ 2 root root 4096 jun 22 08:59 .
drwxr-x--- 19 root root 4096 jun 22 08:59 ..
-rw------- 1 root root 662 jun 21 14:07 authorized_keys

ssh works fine from aix to linux and windows,
linux to aix and windows
windows to aix
but not from windows to linux.

i don't understand...!!!!!!!

i can bypass this pb with "-pw" option, but this is not very good...

Last edited by fjaspart; 06-22-2007 at 02:48 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Swat uses PAM but changes linux passwd not samba passwd Peter@KKVS Linux - Networking 0 11-26-2006 04:20 AM
SSH from master node to compute nodes w/out passwd haiders Linux - Networking 2 09-20-2006 11:50 AM
can i change my passwd and login to ssh? pippet Linux - Newbie 1 10-27-2004 01:41 AM
I am sure it has been asked before but which is best? Colonel Kurtz Linux - Distributions 16 06-29-2003 11:41 PM
This has probably been asked before... TerminalPhreak Linux - Newbie 14 03-12-2003 03:25 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration