auto SSH help, I did STFW/RTFF


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers auto SSH help, I did STFW/RTFF
# 1  
Old 03-02-2006
auto SSH help, I did STFW/RTFF

logon to a client unix box as user "evil"

>
>su - hero

enter evil's password

>hero$> ssh-kengen -t dsa

no passphase, id_dsa / id_dsa.pub generated.

>hero$> scp /home/hero/.ssh/id_dsa.pub evil@scp_server:/tmp/id_dsa.pub


now the scp_server,
logon as evil

>su - hero
>hero>mv id_dsa.pub /home/hero/.ssh/authorized_keys2

verify permission of both pub / private file


now back to the client
>hero>ssh -v -v -v hero@scp_server OR scp_server
...
....
......
debug1: Authentications that can continue: publickey,keyboard-interactive
debug3: start over, passed a different list publickey,keyboard-interactive
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/hero/.ssh/id_dsa
debug1: read PEM private key done: type DSA
debug3: sign_and_send_pubkey
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,keyboard-interactive
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 1

Password:





Please help me...............
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Howto auto boot SPARC | How to auto supply "start /SYS" and "start /SP/console" commands

When I power ON my T4-1, I got a prompt -> where I have to start /SYS and start /SP/console. How can I auto supply these two commands ? (3 Replies)
Discussion started by: z_haseeb
3 Replies

2. Shell Programming and Scripting

SSH HELP how to connect auto?

hi, i have some servers on my network. i need to connect to them auto from my work station sith SSH. i need to write a script thet connects to the server with USERNAME and PASSWORD automticly. and on each server to kill process. in my sciprt i want to put all list the IP of my... (1 Reply)
Discussion started by: zigizag
1 Replies

3. Shell Programming and Scripting

Auto Remote SSH key setup

Hi Guys!! I am trying to get around the complex situation, i have a task to complete, Like to setup the remote SSH key automatically by providing the root login details, ip and ssh port once to the script input and once its tested and accepted the next ssh should be password less, script... (0 Replies)
Discussion started by: SilvesterJ
0 Replies

4. UNIX for Dummies Questions & Answers

auto login not working after ssh-keygen

Hi, I have a generic id say "abc". In a client i logged into using this generic id and generated the key for autologin to do ssh to a server. I have kept the key in authorized_keys file in the server under the home directory of this generic id. (/u/abc/.ssh/authorized_keys) when i do... (7 Replies)
Discussion started by: rbalaj16
7 Replies

5. Shell Programming and Scripting

issue while auto login using .ssh for HPUX

Hi, While trying to supress password prompt using ssh. I have added .ssh folder manually and generated public key and added to authorized_keys file in the remote machine. But still it's prompting for passwords with the following message: Permission denied... (5 Replies)
Discussion started by: 116@434
5 Replies

6. Linux

ssh auto-logout

Hi all, Is there is any feature to auto-logout in OpenSSH 3.6.1p2, If yes then how to disable that because i am getting auto-logout within an hour when i am idle from SSH Server. Thanks in advance. (4 Replies)
Discussion started by: daya.pandit
4 Replies

7. Solaris

ssh auto-logout problem

Hi all, Is there is any feature to auto-logout in OpenSSH 3.6.1p2, If yes then how to disable that because i am getting auto-logout within an hour when i am idle from SSH Server. Thanks in advance. https://www.unix.com/images/misc/progress.gif (3 Replies)
Discussion started by: daya.pandit
3 Replies

8. Solaris

trouble auto connecting ssh 3.6.1 (Solaris 8) to ssh 3.0.1 (Solaris 6)

I am currently setting up rdiff-backup to use ssh to connect and remotely backup and retrieve data. I am doing so by creating rsa keys for each server and copying the relevant key to the /.ssh folder on the relevant server. All seems to work well when severs running solaris 8 with ssh 3.6.1 are... (6 Replies)
Discussion started by: falklandtim
6 Replies
Login or Register to Ask a Question