Sponsored Content
Top Forums Shell Programming and Scripting SSH HELP how to connect auto? Post 302757251 by jim mcnamara on Thursday 17th of January 2013 09:12:54 AM
Old 01-17-2013
You have to install ssh-keys. This allows passwordless connection. ssh was written to deliberately subvert what you are trying to do.

ssh-keygen: password-less SSH login

In windows you have to use Puttygen to create your keys:
PuTTY Download Page
 

10 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

auto-connect with out .netrc file

Hi all, Till now i am using .netrc file for auto-connection to connect to remote system. my shell script contains like below code ex: ftp -i <remote system name> from now i should NOT use .netrc file how can i login automativally with out asking userid and pqssword. note: i am working on... (1 Reply)
Discussion started by: getgopu25
1 Replies

3. UNIX for Dummies Questions & Answers

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... (0 Replies)
Discussion started by: cititester
0 Replies

4. 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

5. 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

6. AIX

cannot connect with ssh

Hi, I have created a new user as below: useradd -g staff -s /usr/bin/ksh test2 passwd test2 <type in new password> <type in new password> and I could not login via ssh with this username while I can do it with another username. Can anyone tell anything missing? Thanks! Victor (4 Replies)
Discussion started by: victorcheung
4 Replies

7. Shell Programming and Scripting

VPNC auto connect shell script

I need a script which connects to vpn (asks for password) then when its connected starts a terminal connection to a specified ip address. Can somebody help me with this please? Thank you in advance (0 Replies)
Discussion started by: dsax64
0 Replies

8. 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

9. 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

10. 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
DBD::Gofer::Transport::stream(3)			User Contributed Perl Documentation			  DBD::Gofer::Transport::stream(3)

NAME
DBD::Gofer::Transport::stream - DBD::Gofer transport for stdio streaming SYNOPSIS
DBI->connect('dbi:Gofer:transport=stream;url=ssh:username@host.example.com;dsn=dbi:...',...) or, enable by setting the DBI_AUTOPROXY environment variable: export DBI_AUTOPROXY='dbi:Gofer:transport=stream;url=ssh:username@host.example.com' DESCRIPTION
Without the "url=" parameter it launches a subprocess as perl -MDBI::Gofer::Transport::stream -e run_stdio_hex and feeds requests into it and reads responses from it. But that's not very useful. With a "url=ssh:username@host.example.com" parameter it uses ssh to launch the subprocess on a remote system. That's much more useful! It gives you secure remote access to DBI databases on any system you can login to. Using ssh also gives you optional compression and many other features (see the ssh manual for how to configure that and many other options via ~/.ssh/config file). The actual command invoked is something like: ssh -xq ssh:username@host.example.com bash -c $setup $run where $run is the command shown above, and $command is . .bash_profile 2>/dev/null || . .bash_login 2>/dev/null || . .profile 2>/dev/null; exec "$@" which is trying (in a limited and fairly unportable way) to setup the environment (PATH, PERL5LIB etc) as it would be if you had logged in to that system. The ""perl"" used in the command will default to the value of $^X when not using ssh. On most systems that's the full path to the perl that's currently executing. PERSISTENCE
Currently gofer stream connections persist (remain connected) after all database handles have been disconnected. This makes later connections in the same process very fast. Currently up to 5 different gofer stream connections (based on url) can persist. If more than 5 are in the cache when a new connection is made then the cache is cleared before adding the new connection. Simple but effective. TO DO
Document go_perl attribute Automatically reconnect (within reason) if there's a transport error. Decide on default for persistent connection - on or off? limits? ttl? AUTHOR
Tim Bunce, <http://www.tim.bunce.name> LICENCE AND COPYRIGHT
Copyright (c) 2007, Tim Bunce, Ireland. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. SEE ALSO
DBD::Gofer::Transport::Base DBD::Gofer perl v5.12.1 2008-03-10 DBD::Gofer::Transport::stream(3)
All times are GMT -4. The time now is 02:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy