Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-21-2007, 08:12 AM
|
#1
|
LQ Newbie
Registered: Jun 2007
Posts: 2
Rep:
|
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
|
|
|
06-21-2007, 04:45 PM
|
#2
|
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:
|
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
|
|
|
06-21-2007, 04:53 PM
|
#3
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
Moved: This thread is more suitable in Linux-Networking and has been moved accordingly to help your thread/question get the exposure it deserves.
|
|
|
06-22-2007, 03:16 AM
|
#4
|
LQ Newbie
Registered: Jun 2007
Posts: 2
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 03:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|