sun ssh client / password


 
Thread Tools Search this Thread
Operating Systems Solaris sun ssh client / password
# 1  
Old 02-13-2009
sun ssh client / password

Hi all,

is there a "password parameter" to login to a server with Suns ssh client (Sun_SSH_1.1)?

I would like to do something like:
ssh -l myuser -p mypassword myserver "mycommand"

P.S.: I know how unsecure that is and how Public-key cryptography works.
Therefore is such a suggestion not necessary. Thanks.

bye,
vic
# 2  
Old 02-13-2009
why would you want to? it kind of defeats the object doesn't it?
# 3  
Old 02-13-2009
Quote:
Originally Posted by victorinox
is there a "password parameter" to login to a server with Suns ssh client
No such command option exists.
# 4  
Old 02-13-2009
... best you can do, is use an expect script, something like
Code:
# cat myssh
   /usr/localbin/expect --
   spawn ssh  [ lindex $argv 0]@[ lindex $argv 1]
   expect Password:
   send [lindex $argv 2]\r
   expect "#"
   send "my command\r"
   expect "#"   #or whatever the prompt is
   send exit\r
   expect "#"    # or whatever the prompt is
   exit 0

# myssh user hostname password "my command"

# 5  
Old 02-13-2009
or setup a NULL key but you should understand the risks.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

SSH password less setup asking for password

Hello Experts, when I am trying to connect my target server through sftp after creating ssh password less setup, it is asking for passowrd to connect. to setup this I followed below process: -->generated keys by executing the command "ssh-keygen -t rsa" -->this created my .ssh directory... (9 Replies)
Discussion started by: Devipriya Ch
9 Replies

2. Linux

What SSH Client do you Use?

Most of you probably use PuTTy, but I was wondering if there were any other good alternatives. So, what SSH client do you use? (2 Replies)
Discussion started by: erich76
2 Replies

3. Solaris

Sun is not able to ssh another machine of sun

My one Sun machine is not able to ssh another machine of Sun. Although I have configured the ssh successfully ( SunOS sunbox2 5.9 Generic_118558-34 sun4u sparc SUNW,Sun-Blade-2500 ) ERROR bash-2.05# ssh sunbox2 /etc/ssh/ssh_config: line 34: Bad configuration option: PermitRootLogin... (0 Replies)
Discussion started by: z_haseeb
0 Replies

4. Solaris

SSH Password-less login fails on password expiry.

Hi Gurus I have a few Sol 5.9 servers and i have enabled password less authentication between them for my user ID. Often i have found that when my password has expired,the login fails. Resetting my password reenables the keys. Do i need to do something to avoid this scenario or is this... (2 Replies)
Discussion started by: Renjesh
2 Replies

5. Windows & DOS: Issues & Discussions

ssh: sending password from windows client

Hi. My workstation is Windows. I use putty to connect to unix servers. The problem is that i'm doing it many times a day and each time i need to supply password. I have no control on ssh configuration on servers, because of account restrictions. So i can't use key authentication, how is suggested... (4 Replies)
Discussion started by: kukuruku
4 Replies

6. HP-UX

SSH client

As user root and with some users I can use ssh to connect to remote hosts. But with a specific user I can't use ssh client because: $ ssh OpenSSL version mismatch. Built against 90807f, you have 90703f Is it a $PATH problem or what? HP-UX version is 11.11. (2 Replies)
Discussion started by: untamed
2 Replies

7. Solaris

password less login from openssh to SSH Secure Shell 3.0.1 Sun solaris 7

Hi, I would like to login from a Sun server running ssh: Sun_SSH_1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090704f to ssh: SSH Secure Shell 3.0.1 on sparc-sun-solaris2.6 How can I achieve this? Thanks a million in advance (1 Reply)
Discussion started by: newbewie
1 Replies

8. Solaris

Secure FTP Problem using Sun SSH on Client system F-Secure on Server system

I am using shell script to do secure ftp. I have done key file setup to do password less authentication. Following are the FTP Details: FTP Client has Sun SSH. FTP Server has F-Secure. I am using SCP Command to do secure copy files. When I am doing this, I am getting the foll error scp:... (2 Replies)
Discussion started by: ftpguy
2 Replies

9. UNIX for Dummies Questions & Answers

SSH client

How can I use ssh client with proxy support? If possible: with proxy chain support. :) (2 Replies)
Discussion started by: zylwyz
2 Replies

10. Cybersecurity

What's the difference between an SSH Client and an SSH Server?

Eh... yeah. What the title says. :D (1 Reply)
Discussion started by: PSC
1 Replies
Login or Register to Ask a Question