From owner-freebsd-stable@freebsd.org Thu May 24 22:20:11 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A39EEEFFBED for ; Thu, 24 May 2018 22:20:11 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-qt0-x235.google.com (mail-qt0-x235.google.com [IPv6:2607:f8b0:400d:c0d::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 403F687288 for ; Thu, 24 May 2018 22:20:11 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: by mail-qt0-x235.google.com with SMTP id j42-v6so4156295qtj.12 for ; Thu, 24 May 2018 15:20:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=longcount-org.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=XdC6oOaa+PKWT1cFzPhtjjdlOFAShQAqOEZ9Msd/DoQ=; b=lMweIU3LldygUId4aoZvtaqLH5AZW7skfIaM1Q/rcAwiAn6M+8WwnHyNoFO6Koq4Gu /CLa5nGReVEx6u48V6NgDUtIfzoAOoBioJEJ9AovSp5u5Qkaf1wOBUDbyO8HHNr5tFTF 4uUBilz5KybaYlXDyKuTJjjFUioL6lwmJdO3qGOntD56ZZh/Vblm6RB+zLWnWWh9SXH8 coPm6O+yPdIOAjyPK69mFOPWIqsBvP8jN0sHdaZKuQyIq57bfh03lfGT2TFOfACv3WAU hH44Bqjv9u3bWiKOphow/YZffkHoD24h7/8c9d+kfu/0rm8wanrd8IcjecTm4gr2vU5B LTZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=XdC6oOaa+PKWT1cFzPhtjjdlOFAShQAqOEZ9Msd/DoQ=; b=b243C53nVVaSaITOzBE98hpW2jjDjzHms8u+DvZScmsGC5TcbLKjOkMH7xiPkq+t8O FjlbAYlUPuSDvrPEcUAtrvJfKzLFS5n67GQJ7S3JSSuINQ+i4m9Q1Moh1k8P6Vwhl10j R1CRm47ul80mFJhvS5nvS+oM0UkmM++u57sjN+bcF3wILf9kVW8D61CTBFP6uGjv8W7k 2VbvXmHr+FnWqtBB5V3edDWX9qaDn5M0/jSjVtlNVlIUh8DpPxwC8w6NgfLM5xRh8U/G PERKpLWuX3TBsNUoDD/AYA+hHmQoc762uEoiYIJYqd4a8WpF7h0tWPdORUE2EQ7OD+Ml Rl1g== X-Gm-Message-State: ALKqPwc5Rhlbc0n2VRj8JI8pEWPmb27MtrIs/X+nx7McV1G74gM+6N4T 2SUX1c5sGdRuMleeXTPI03wTVXDCot0= X-Google-Smtp-Source: AB8JxZoyWcnNVJ2sPfmzlw/EbHpa7Mgyrs4uFPgmQ1gmk+UGe4glVhl+lHHdeb+wLs+88Gp0nYEltg== X-Received: by 2002:a0c:8d4b:: with SMTP id s11-v6mr8756875qvb.163.1527200410744; Thu, 24 May 2018 15:20:10 -0700 (PDT) Received: from ?IPv6:2600:1017:b81f:92d4:8c07:2284:ef9a:7306? ([2600:1017:b81f:92d4:8c07:2284:ef9a:7306]) by smtp.gmail.com with ESMTPSA id i8-v6sm16796718qtb.11.2018.05.24.15.20.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 15:20:09 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Mark Saad Mime-Version: 1.0 (1.0) Subject: Re: problems with ssh-agent after running MATE desktop Date: Thu, 24 May 2018 18:13:21 -0400 Message-Id: References: <0a5a4cfc-7872-41ae-4f51-a65fc2cb9986@zyxst.net> <5B070513.8090102@grosbein.net> Cc: tech-lists , freebsd-questions@freebsd.org, freebsd-stable@FreeBSD.org In-Reply-To: <5B070513.8090102@grosbein.net> To: Eugene Grosbein X-Mailer: iPhone Mail (15E302) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2018 22:20:12 -0000 > On May 24, 2018, at 2:31 PM, Eugene Grosbein wrote: >=20 > 24.05.2018 21:41, tech-lists wrote: >=20 >> If I then run 'agent', prompts me for the keyphrase, then it works normal= ly. But I have to repeat this in every single opened terminal. >=20 > You may like security/keychain port (or package). I use it because of its u= niversal way to run ssh-agent: > no matter what DE or window manager you use and how do you start it or not= at all, working in ssh or console only. >=20 > One just adds single line to its login shell script, for bash it is ~/.bas= h_login: >=20 > eval `keychain --eval $HOME/.ssh/id_rsa $HOME/.ssh/id_ed25519 $HOME/.ssh/i= d_dsa` >=20 > First time after machine reboots (sic!) it asks you for passphrase (if nee= ded) > when you log in starting interactive login shell (no matter which way: ssh= /X/console) and that's all. > It won't ask you again until next reboot, or ssh-agent reset by some other= way. >=20 > You may even disconnect completely and it reuses started ssh-agent next ti= me you log in again. I still use windowmaker as my primary desktop . However what I do in .xinitr= c is =E2=80=98 ssh-agent wmaker=E2=80=99 . Ssh-agent=E2=80=99s man page sta= tes it can be used in place of exec in shell scripts to inject its environme= nt into wmaker and its child processes like xterm or urxvt in my case . You= use to be able to do this in kde I am not 100% sure about gnome but it=E2=80= =99s worth trying if you don=E2=80=99t like keyring. --- Mark Saad | nonesuch@longcount.org=