Re: [Ilugc] Password as an argument in SSH

2010-03-21 Thread Suraj Kumar
On Sat, Mar 20, 2010 at 9:56 PM, Mohan L  wrote:

> If you are new to the great technology Hadoop/MapReduce and want to getting
> started with Hadoop, the bad news is : It is little bit difficult to setup
> Hadoop cluster for beginer.
>

For the ones who have a bit more $$ and less time for hadoop setup, Cloudera
might be a good option: http://www.cloudera.com/

Cheers,

  -Suraj
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Password as an argument in SSH

2010-03-20 Thread Abhishek Mishra
This very much reminds me of a hacking contest at iit-m where one had
to brute force ssh using given dictionary. I couldn't figure it out
myself then, but expect was the solution, go for it :)

On Sat, Mar 20, 2010 at 10:02 PM, Varadharajan Mukundan
 wrote:
> Hi all,
>
> Thanks for the link.
>
> Thanks,
>
> M. Varadharajan
> http://thinkasgeek.wordpress.com
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Password as an argument in SSH

2010-03-20 Thread Varadharajan Mukundan
Hi all,

Thanks for the link.

Thanks,

M. Varadharajan
http://thinkasgeek.wordpress.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Password as an argument in SSH

2010-03-20 Thread Mohan L
On Sat, Mar 20, 2010 at 9:12 PM, Varadharajan Mukundan  wrote:

> Hi all,
>
> Thanks for all those helpful advice. I think Hadoop usually ssh into
> localhost to Map and Reduce. I don't know, how it does and hence posted
> this
> thread.
>
>
Hi,

If you are new to the great technology Hadoop/MapReduce and want to getting
started with Hadoop, the bad news is : It is little bit difficult to setup
Hadoop cluster for beginer.

The Good news is : You may use "Hadoop Live CD" for getting started with
Hadoop. This live cd comes with two node cluster.

You can dowload "OpenSolaris Live Hadoop" from the below link and will work
with Hadoop without installing it.


More Info :
http://hub.opensolaris.org/bin/view/Project+livehadoop/

Download:
http://hub.opensolaris.org/bin/view/Project+livehadoop/Downloads

Thanks & Rg
Mohan L
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Password as an argument in SSH

2010-03-20 Thread Mohan L
On Sat, Mar 20, 2010 at 9:12 PM, Varadharajan Mukundan  wrote:

> Hi all,
>
> Thanks for all those helpful advice. I think Hadoop usually ssh into
> localhost to Map and Reduce. I don't know, how it does and hence posted
> this
> thread.
>
> Thanks,
>

Ok, You have to Setup passphrase less ssh.

HDFS has a master/slave architecture. An HDFS cluster consists of a single
NameNode, a master server. There are a number of DataNodes, usually one per
node in the cluster. The master(NameNode) node uses Secure Shell (SSH)
commands to start DataNodes.

Now check that you can ssh to the localhost without a passphrase:
$ ssh localhost

It should login without asking password. If not you have to setup
passphraseless ssh in your local box.

In a multi-node hadoop cluster, the master node uses Secure Shell (SSH)
commands to manipulate the remote nodes.

By default, if a user from NodeA wants to login to a remote NodeB by using
SSH, he will be asked the password for NodeB for authentication. However, it
is impossible to input
the authentication password every time the masternode wants to operate on a
slavenode. Under this circumstance, we must adopt public key authentication.
Simply speaking, every node will generate a pair of public key and private
key, and NodeA can login to NodeB without password authentication only if
NodeB has a copy of NodeA’s public key.In other words, if NodeB has NodeA’s
public key, NodeA is a trusted node to NodeB . In hadoop cluster, all the
slavenodes must have a copy of masternode’s public key.

Thanks & Rg
Mohan L
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Password as an argument in SSH

2010-03-20 Thread Varadharajan Mukundan
Hi all,

Thanks for all those helpful advice. I think Hadoop usually ssh into
localhost to Map and Reduce. I don't know, how it does and hence posted this
thread.

Thanks,

M. Varadharajan
http://www.thinkasgeek.wordpress.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Password as an argument in SSH

2010-03-20 Thread Vasan
You cant provide a password as an argument to ssh. However you have some
options depending on what exactly you want to do:

- You can use tcl/expect script to make it interactive and supply the
password in your script through expect
- You can use ssh-keygen which uses private-key/public-key methods and
thereby bypass a challenge from the ssh server with a password (However,
this can be done only if the server is a standard server which you know in a
pre-determined manner that you are going to be communicating with). Try ssh
man page to view more details on this option.

HTH

Vasan

On Sat, Mar 20, 2010 at 6:28 PM, Varadharajan Mukundan  wrote:

> Hi all,
>
> I would like to know, whether it is possible to pass the password as an
> argument in SSH.
>
> Thanks,
>
> M. Varadharajan
> http://www.thinkasgeek.wordpress.com
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Password as an argument in SSH

2010-03-20 Thread Roshan George
On Sat, 2010-03-20 at 18:28 +0530, Varadharajan Mukundan wrote:
> Hi all,
> 
> I would like to know, whether it is possible to pass the password as an
> argument in SSH.

Can't imagine a good reason to do this. Let's say you did do that. Then
anyone who ran `ps aux | grep ssh` would be able to see your password!
Still, if you really must, you could write a script for expect that does
what you want.

Why don't you tell us why you want to do this so that we can suggest a
possibly better way of going about things?
-- 
Roshan George 

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Password as an argument in SSH

2010-03-20 Thread Immanuel Jeyaraj
Try SSH key...

On Sat, Mar 20, 2010 at 7:23 PM, Bhargav Prasanna
 wrote:
> On 20 March 2010 18:28, Varadharajan Mukundan  wrote:
>
>> Hi all,
>>
>> I would like to know, whether it is possible to pass the password as an
>> argument in SSH.
>>
>> Thanks,
>>
>> M. Varadharajan
>> http://www.thinkasgeek.wordpress.com
>> ___
>> ILUGC Mailing List:
>> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>>
>
>
> Hi,
> Afaik, you cant'.
> ssh is interactive.
> --
> Bhargav Prasanna
> "Linux - Because x64 is a terrible thing to waste"
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Password as an argument in SSH

2010-03-20 Thread Mohan L
On Sat, Mar 20, 2010 at 6:28 PM, Varadharajan Mukundan  wrote:

> Hi all,
>
> I would like to know, whether it is possible to pass the password as an
> argument in SSH.
>
> Thanks,
>
> Hi,

You may use password less authentication.

It allows you to login to a remote host via the SSH protocol without a
password and is more secure than password-based authentication.

Google some thing like " password less authentication in Linux"

You will get lot of reference.

See this link also :

http://www.cyberciti.biz/tips/linux-multiple-ssh-key-based-authentication.html

I hope this will help your requirement.

Thanks & Rg
Mohan L
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Password as an argument in SSH

2010-03-20 Thread Bhargav Prasanna
On 20 March 2010 18:28, Varadharajan Mukundan  wrote:

> Hi all,
>
> I would like to know, whether it is possible to pass the password as an
> argument in SSH.
>
> Thanks,
>
> M. Varadharajan
> http://www.thinkasgeek.wordpress.com
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>


Hi,
Afaik, you cant'.
ssh is interactive.
-- 
Bhargav Prasanna
"Linux - Because x64 is a terrible thing to waste"
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc