UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old September 21st, 2004, 09:44 AM
StevenC's Avatar
StevenC StevenC is offline
PHP & Java Error Master
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2003
Location: My Computer
Posts: 1,218 StevenC User rank is Sergeant (500 - 2000 Reputation Level)StevenC User rank is Sergeant (500 - 2000 Reputation Level)StevenC User rank is Sergeant (500 - 2000 Reputation Level)StevenC User rank is Sergeant (500 - 2000 Reputation Level)StevenC User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 1 h 31 m 24 sec
Reputation Power: 15
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?
__________________


Webinfractions.com
Think I'm wrong? You're probably right!

Reply With Quote
  #2  
Old September 21st, 2004, 09:59 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 47 m 32 sec
Reputation Power: 9
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

Reply With Quote
  #3  
Old September 23rd, 2004, 12:21 PM
StevenC's Avatar
StevenC StevenC is offline
PHP & Java Error Master
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2003
Location: My Computer
Posts: 1,218 StevenC User rank is Sergeant (500 - 2000 Reputation Level)StevenC User rank is Sergeant (500 - 2000 Reputation Level)StevenC User rank is Sergeant (500 - 2000 Reputation Level)StevenC User rank is Sergeant (500 - 2000 Reputation Level)StevenC User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 1 h 31 m 24 sec
Reputation Power: 15
Your reply really makes no sense.

Also, it looks like I can use expect to supply the password without user interaction.

Reply With Quote
  #4  
Old September 23rd, 2004, 12:42 PM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 47 m 32 sec
Reputation Power: 9
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-want
better 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

Reply With Quote
  #5  
Old September 23rd, 2004, 02:04 PM
StevenC's Avatar
StevenC StevenC is offline
PHP & Java Error Master
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2003
Location: My Computer
Posts: 1,218 StevenC User rank is Sergeant (500 - 2000 Reputation Level)StevenC User rank is Sergeant (500 - 2000 Reputation Level)StevenC User rank is Sergeant (500 - 2000 Reputation Level)StevenC User rank is Sergeant (500 - 2000 Reputation Level)StevenC User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 1 h 31 m 24 sec
Reputation Power: 15
I'm sorry, but I just don't understand what you're trying to say.

Reply With Quote
  #6  
Old September 23rd, 2004, 11:08 PM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 47 m 32 sec
Reputation Power: 9
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?

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > SSH without a password, and without key files


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway