08-29-2012
ssh private key passwordless authentication
Hello,
Need a suggestion to setup private key passwordless authentication. I am not sure this can done or not
here is the sincerio
I have two servers, sever1 with a user "user1" and servera with usera
here dataflow: usera from servera, will pull/push files to server1 on user1 homedirectory, so practically usera public key should be on server1 for user1 authorized key file for passwordless authentication.
so here is the issue now, for "usera" due to company polices they don't generate keys. After discussing this my team member, he suggested to generate and forward both private and public keys for user1 to usera on servera. I am sure what sftp options I need to use on servera to authenticate passwordless to server1.
Thanks
10 More Discussions You Might Find Interesting
1. AIX
I am trying to implement passwordless authentication via ssh2. I have used the well documented technique of generating a key pair with a blank passphrase on my client machine, and installing the public key on the destination server (AIX 5.3) in the user's .ssh2 directory. I have used this technique... (1 Reply)
Discussion started by: RegX
1 Replies
2. AIX
Hello,
I would like to issue a couple of commands as root on a remote machine without having to enter the root password. I used "ssh-keygen -t rsa" to generate the encryption keys, copied the public key to the remote machine, etc.
I also tried playing around with the sshd_config file and... (3 Replies)
Discussion started by: sphericon
3 Replies
3. Windows & DOS: Issues & Discussions
Hello all,
I have a bit of trouble working a passwordless SSH from UNIX to Cygwin running windows 2k3. Here are some details. I AM able to SSH from the Windows box to the UNIX box using the keys. Also, I'm able to SSH from UNIX to Windows w/o the keys. However, when I try to do it with the keys... (9 Replies)
Discussion started by: kclerks11
9 Replies
4. UNIX for Advanced & Expert Users
Hi
I have two machines Mac1 and Mac2 logging in with same user id and same private key.
can anyone let me know how to connect these two machine using ssh .
or SCP files to other machine
:wall: (1 Reply)
Discussion started by: madankumar
1 Replies
5. Solaris
Hi, I've used the following way to set ssh public key authentication and it is working fine on Solaris 10, RedHat Linux and SuSE Linux servers without any problem. But I got error 'Server refused our key' on Solaris 8 system. Solaris 8 uses SSH2 too. Why? Please help. Thanks.
... (1 Reply)
Discussion started by: aixlover
1 Replies
6. UNIX for Dummies Questions & Answers
Hi,
please guide me create a public/private key using ssh-keygen, lets say I have been access to server named pngpcdb1with a userid and password ...!!! and also please explain in detail the concept of these keys and ssh as I was planning to use them in ftp related scripts..! Thanks in... (1 Reply)
Discussion started by: rahul125
1 Replies
7. Shell Programming and Scripting
I need to automate a file transfer thru SFTP. But I cannot do a passwordless key with ssh-keygen between the servers. Is there any other way like we do something like below in FTP???
ftp -n hostIP << EOF
user userid password
get filename
EOF
Please use code tags! (5 Replies)
Discussion started by: Vidhyaprakash
5 Replies
8. Ubuntu
Unable to set ssh passwordless authentication
I am unable to ssh with passwordless authentication from Windows client onto UBuntu server. The ssh version on UBuntu is OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e , while SSH on Windows Client is OpenSSH_5.1p1, OpenSSL 0.9.8k. I turned on ssh... (5 Replies)
Discussion started by: tkota
5 Replies
9. OS X (Apple)
Before you get the wrong idea, I am not looking for how to generate one. I have a key from a server admin but I can't figure out how to use it in OS X.
I have the key, the address and everything I should need but there doesn't seem to be a step by step on how to install the key and use it in... (4 Replies)
Discussion started by: kylebellamy
4 Replies
10. Shell Programming and Scripting
Hey team
I have to enable password less authentication betweeen A to B server and A to C server and A to D server.
For this I generated a ssh key on server A using ssh-keygen command and copied the key using ssh-copy-id command to B, C and D server. Everything is working fine as of now but... (5 Replies)
Discussion started by: Sandeep_sandy
5 Replies
LEARN ABOUT DEBIAN
apache::htgroup
Apache::Htgroup(3pm) User Contributed Perl Documentation Apache::Htgroup(3pm)
NAME
Apache::Htgroup - Manage Apache authentication group files
SYNOPSIS
use Apache::Htgroup;
$htgroup = Apache::Htgroup->load($path_to_groupfile);
&do_something if $htgroup->ismember($user, $group);
$htgroup->adduser($user, $group);
$htgroup->deleteuser($user, $group);
$htgroup->deletegroup( $group );
$htgroup->save;
DESCRIPTION
Manage Apache htgroup files
Please note that this is not a mod_perl module. Please also note that there is another module that does similar things (HTTPD::UserManage)
and that this is a more simplistic module, not doing all the things that one does.
METHODS
The following methods are provided by this module.
load
$htgroup = Apache::Htgroup->load($path_to_groupfile);
Returns an Apache::Htgroup object.
new
$htgroup = Apache::Htgroup->new();
$htgroup = Apache::Htgroup->new( $path_to_groupfile );
Creates a new, empty group file. If the specified file already exists, loads the contents of that file. If no filename is specified, you
can create a group file in memory, and save it later.
adduser
$htgroup->adduser( $username, $group );
Adds the specified user to the specified group.
deleteuser
$htgroup->deleteuser($user, $group);
Removes the specified user from the group.
groups
$groups = $htgroup->groups;
Returns a (reference to a) hash of the groups. The key is the name of the group. Each value is a hashref, the keys of which are the group
members. I suppose there may be some variety of members method in the future, if anyone thinks that would be useful.
It is expected that this method will not be called directly, and it is provided as a convenience only.
Please see the section below about internals for an example of the data structure.
reload
$self->reload;
If you have not already called save(), you can call reload() and get back to the state of the object as it was loaded from the original
file.
deletegroup
$self->deletegroup( 'GroupName' );
Removes a group from the htgroup file. You will need to call save afterward to commit this change back to the file.
save
$htgroup->save;
$htgroup->save($file);
Writes the current contents of the htgroup object back to the file. If you provide a $file argument, "save" will attempt to write to that
location.
ismember
$foo = $htgroup->ismember($user, $group);
Returns true if the username is in the group, false otherwise
Internals
Although this was not the case in earlier versions, the internal data structure of the object looks something like the following:
$obj = { groupfile => '/path/to/groupfile',
groups => { group1 => { 'user1' => 1,
'user2' => 1,
'user3' => 1
},
group2 => { 'usera' => 1,
'userb' => 1,
'userc' => 1
},
}
};
Note that this data structure is subject to change in the future, and is provided mostly so that I can remember what the heck I was
thinking when I next have to look at this code.
Adding groups
A number of folks have asked for a method to add a new group. This is unnecessary. To add a new group, just start adding users to a new
group, and the new group will magically spring into existance.
AUTHOR
Rich Bowen, rbowen@rcbowen.com
COPYRIGHT
Copyright (c) 2001 Rich Bowen. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same
terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.10.1 2010-12-01 Apache::Htgroup(3pm)