LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-21-2007, 08:12 AM   #1
fjaspart
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,...

windows
server name:rangiroa
user:administrateur

AIX
server name:java
user:fjaspart

linux
server name:rac2
user:fjaspart

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, 04:45 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Check this link and make sure your permission atributes are correct using the chmod command mentioned. http://www.suso.org/docs/shell/ssh.sdf

Brian
 
Old 06-21-2007, 04:53 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

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, 03:16 AM   #4
fjaspart
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Unhappy

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 03:48 AM.
 
  


Reply


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 05:20 AM
SSH from master node to compute nodes w/out passwd haiders Linux - Networking 2 09-20-2006 12:50 PM
can i change my passwd and login to ssh? pippet Linux - Newbie 1 10-27-2004 02:41 AM
I am sure it has been asked before but which is best? Colonel Kurtz Linux - Distributions 16 06-30-2003 12:41 AM
This has probably been asked before... TerminalPhreak Linux - Newbie 14 03-12-2003 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:20 PM.

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