|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
SSH without a password, and without key files
Is there some way to do the following with SSH?
Code:
#!/bin/sh ( echo myusernme sleep 2 echo mypass sleep 2 echo "uname -a" sleep 2 ) | telnet hostname I already tried that in ssh, but it just sat at the password prompt. Any ideas? |
|
#2
|
|||
|
|||
|
NO
you try to connect without passwd ssh can it read the doc, pay attention to ssh-keygen, $HOME/.ssh/authorized_keys* and the -i option of ssh |
|
#3
|
||||
|
||||
|
Your reply really makes no sense.
Also, it looks like I can use expect to supply the password without user interaction. |
|
#4
|
|||
|
|||
|
yes StevenC
i use it since years, read TFMP, ssh can secure login to a remote or local sys WITHOUT a passwd in a not interactive mode and exec what-ever-you-wantbetter as 'expect' does.... and less complicated. PS: i mean a correctly installesd ssh. a good one is: tar cf - xxx | ssh remote-sys tar xf - haha! Last edited by guggach : September 23rd, 2004 at 12:47 PM. Reason: typo |
|
#5
|
||||
|
||||
|
I'm sorry, but I just don't understand what you're trying to say.
|
|
#6
|
|||
|
|||
|
i say: using ssh i can
- login to a remote or local sys - exec commands without entering a passwd. that's all ![]() sorry for my english, my mother tongues are french and italian, i also command very well german what do you prefer? |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > SSH without a password, and without key files |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|