Re: SSH-agent setting
On Tue, Feb 15, 2005 at 06:23:27PM +0100, kilim wrote: On Tue, Feb 15, 2005 at 11:51:41AM -0500, Clayton Scott Kern wrote: Why not use keychain and put it in the appropriate rc file (.bashrc, cshrc, etc.), then you'll be connected to the agent automatically. My bad. Please disregard my previous email. I apologise ! Your suggestion is great. What I didn't realise is that keychain is a great tool which resides in /usr/ports/security/keychain and it does this: allowing you to easily have one long-running ssh-agent process per system, rather than per login session. Actually, it's simpler than that. Just add the following lines to your .profile: export SSH_AUTH_SOCK=/tmp/user.agent ssh-add -L /dev/null 21 if [ $? -ge 2 ]; then ssh-agent -a $SSH_AUTH_SOCK /dev/null 21 fi Then you'll just need to run ssh-add once after every reboot to re-add the key, but the ssh-agent will be accessible from every terminal, X11 session, ssh login, etc. with your username. as its web site states: http://www.gentoo.org/proj/en/keychain/index.xml Thank you Clayton ! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
SSH-agent setting
Hello, I set ssh-agent just fine for a session from a xterm under X. But what I'd like to have is once I log in to have session start from my .profile so that when I do startx every subsequent xterm 'inherits' the ssh-agent so that I don't have to type in the password. Is such a thing do-able ? Thank you ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SSH-agent setting
Hello, I set ssh-agent just fine for a session from a xterm under X. But what I'd like to have is once I log in to have session start from my .profile so that when I do startx every subsequent xterm 'inherits' the ssh-agent so that I don't have to type in the password. Is such a thing do-able ? in ~/.xinit start your windowmanager with something like: /usr/bin/ssh-agent ~/bin/startmywindowmanager if you are using xdm, some applications in ports can help you with providing a password-dialog, among others ssh_askpass_gtk2. -- Hilsen Lars Thank you ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SSH-agent setting
Hello, I set ssh-agent just fine for a session from a xterm under X. But what I'd like to have is once I log in to have session start from my .profile so that when I do startx every subsequent xterm 'inherits' the ssh-agent so that I don't have to type in the password. Is such a thing do-able ? in ~/.xinit start your windowmanager with something like: correction: i have this in the file ~/.xsession , sorry. /usr/bin/ssh-agent ~/bin/startmywindowmanager if you are using xdm, some applications in ports can help you with providing a password-dialog, among others ssh_askpass_gtk2. -- Hilsen Lars Thank you ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SSH-agent setting
On Tue, Feb 15, 2005 at 04:56:43PM +0100, Lars Kristiansen wrote: Hello, I set ssh-agent just fine for a session from a xterm under X. But what I'd like to have is once I log in to have session start from my .profile so that when I do startx every subsequent xterm 'inherits' the ssh-agent so that I don't have to type in the password. Is such a thing do-able ? in ~/.xinit start your windowmanager with something like: correction: i have this in the file ~/.xsession , sorry. /usr/bin/ssh-agent ~/bin/startmywindowmanager Thanks Lars ! I'm doing something like this, in my .xinitrc, as I start the X from the command line using 'startx': /usr/bin/ssh-agent /usr/X11R6/bin/wmaker Then in the xterm I just type ssh-add and every consecutive xterm can use ssh without prompting for the password. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SSH-agent setting
Why not use keychain and put it in the appropriate rc file (.bashrc, cshrc, etc.), then you'll be connected to the agent automatically. on 02-15-2005, kilim wrote: On Tue, Feb 15, 2005 at 04:56:43PM +0100, Lars Kristiansen wrote: Hello, I set ssh-agent just fine for a session from a xterm under X. But what I'd like to have is once I log in to have session start from my .profile so that when I do startx every subsequent xterm 'inherits' the ssh-agent so that I don't have to type in the password. Is such a thing do-able ? in ~/.xinit start your windowmanager with something like: correction: i have this in the file ~/.xsession , sorry. /usr/bin/ssh-agent ~/bin/startmywindowmanager Thanks Lars ! I'm doing something like this, in my .xinitrc, as I start the X from the command line using 'startx': /usr/bin/ssh-agent /usr/X11R6/bin/wmaker Then in the xterm I just type ssh-add and every consecutive xterm can use ssh without prompting for the password. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Clayton Scott Kern [EMAIL PROTECTED]The software states that it UNIX System Administrator requires Microsoft Windows 95, FreeBSD, OpenBSD, NetBSD, Windows 98, Windows NT 4.0 or Linux, Solaris, HP-UX higher, so I installed FreeBSD. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SSH-agent setting
On Tue, Feb 15, 2005 at 11:51:41AM -0500, Clayton Scott Kern wrote: on 02-15-2005, kilim wrote: On Tue, Feb 15, 2005 at 04:56:43PM +0100, Lars Kristiansen wrote: I set ssh-agent just fine for a session from a xterm under X. But what I'd like to have is once I log in to have session start from my .profile so that when I do startx every subsequent xterm 'inherits' the ssh-agent so that I don't have to type in the password. Is such a thing do-able ? in ~/.xinit start your windowmanager with something like: correction: i have this in the file ~/.xsession , sorry. /usr/bin/ssh-agent ~/bin/startmywindowmanager I'm doing something like this, in my .xinitrc, as I start the X from the command line using 'startx': /usr/bin/ssh-agent /usr/X11R6/bin/wmaker Then in the xterm I just type ssh-add and every consecutive xterm can use ssh without prompting for the password. Why not use keychain and put it in the appropriate rc file (.bashrc, cshrc, etc.), then you'll be connected to the agent automatically. You top posted. Anyways. Because if I have ssh-agent in .profile everytime I start an xterm I'll have another ssh-agent starting. Then for each and every one of them I'll have to run ssh-add and type in the pass pharase. Which completely defeats the whole point. But thanks for trying anyways. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SSH-agent setting
On Tue, Feb 15, 2005 at 11:51:41AM -0500, Clayton Scott Kern wrote: Why not use keychain and put it in the appropriate rc file (.bashrc, cshrc, etc.), then you'll be connected to the agent automatically. My bad. Please disregard my previous email. I apologise ! Your suggestion is great. What I didn't realise is that keychain is a great tool which resides in /usr/ports/security/keychain and it does this: allowing you to easily have one long-running ssh-agent process per system, rather than per login session. as its web site states: http://www.gentoo.org/proj/en/keychain/index.xml Thank you Clayton ! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]