added systemd unit to autostart ssh-agent
This commit is contained in:
		
							parent
							
								
									14e8f5a001
								
							
						
					
					
						commit
						01f3b54adf
					
				
					 4 changed files with 18 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -24,3 +24,8 @@ Kata
 | 
			
		|||
ctl
 | 
			
		||||
NDSU
 | 
			
		||||
rebasing
 | 
			
		||||
posix
 | 
			
		||||
tmux
 | 
			
		||||
keybinds
 | 
			
		||||
dotfile
 | 
			
		||||
dotfiles
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										10
									
								
								ssh-agent-systemd/.config/systemd/user/ssh-agent.service
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								ssh-agent-systemd/.config/systemd/user/ssh-agent.service
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,10 @@
 | 
			
		|||
[Unit]
 | 
			
		||||
Description=SSH key agent
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
Type=simple
 | 
			
		||||
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
 | 
			
		||||
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
 | 
			
		||||
 | 
			
		||||
[Install]
 | 
			
		||||
WantedBy=default.target
 | 
			
		||||
							
								
								
									
										1
									
								
								ssh/.ssh/config
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								ssh/.ssh/config
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
AddKeysToAgent  yes
 | 
			
		||||
| 
						 | 
				
			
			@ -31,6 +31,8 @@
 | 
			
		|||
	export LESSHISTFILE="/dev/null"
 | 
			
		||||
	#set the w3m homepage
 | 
			
		||||
	export WWW_HOME="duckduckgo.com/lite/"
 | 
			
		||||
	#set ssh-agent to play nice with systemd.
 | 
			
		||||
	export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
 | 
			
		||||
 | 
			
		||||
#web_search from terminal
 | 
			
		||||
	function web_search() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue