From owner-freebsd-questions@freebsd.org Thu May 24 22:20:11 2018 Return-Path: Delivered-To: freebsd-questions@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 9BE9CEFFBEC for ; Thu, 24 May 2018 22:20:11 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-qt0-x22d.google.com (mail-qt0-x22d.google.com [IPv6:2607:f8b0:400d:c0d::22d]) (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 4047587289 for ; Thu, 24 May 2018 22:20:11 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: by mail-qt0-x22d.google.com with SMTP id m5-v6so4197057qti.1 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=SvpPBCv4CZe+WLzkyp2X960FAmlb9xlILZ5xszWao2Q0Qz+RwT1lqY1i8GSONZBDGZ /uXw9dLA1qf8InUP1SAaenhCV68aRjFc9zAc0CJQDSJ5qVx14twEDCaT80cT8jQei1EX xybR6rx/ULSyc4O+h/fIl3Q8kWWsBpMDnIK8M2TijCWynPZZMD1IFwn9/cvI3cnVEB6C WQW3ThzolIUbS3KruYySo2HeRjJ3FSSFHABQztS9hryvGdiyEpnmGzBL02N5vLTJlCJm Tv2TBmBNUm3qDsSPrTeo1uGkJ0atUYB2e3AdXhcH5Tmc5K2V3u/wnaF5sb3K1oqlN/4E 49/A== X-Gm-Message-State: ALKqPwdwMJcTwQz/b7SOVAbBIHbWvnPlaePp2tDeSWg3QPoWl4tRYPcV 3QORM/ZkgIHs1bnJ5cp7A/JfVQ== 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-questions@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2018 22:20:11 -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=