Quantcast
Channel: Can you set passwords in .ssh/config to allow automatic login? - Ask Ubuntu
Browsing latest articles
Browse All 16 View Live

Answer by Misty for Can you set passwords in .ssh/config to allow automatic...

Inspired by @Arek Burdach's answer and others' wrapper, I've wrote a wrapper that should be more robust which facilitated ssh own command parsing.UPDATE 2021-04-26: Fixed wrapper when a host only...

View Article


Answer by Mike Slinn for Can you set passwords in .ssh/config to allow...

Because I cannot find documentation on how to implement key-based authentication for a Windows ssh server I am forced to use password authentication to access files and directories hosted by...

View Article


Answer by ricffb for Can you set passwords in .ssh/config to allow automatic...

There is a slight variant of a way described in the blog on how to use sshpasswhich can be found here. Given that you have a gpg encrypted password (how ot do this is described in the blog) file you...

View Article

Answer by MerryDan for Can you set passwords in .ssh/config to allow...

Thanks, Arek for the inspiration...Rather than running another shell process, this is just a function running in the current bash shell. It runs a single awk command to parse the config file and figure...

View Article

Answer by Willian Z for Can you set passwords in .ssh/config to allow...

If you don't have direct access to key-pair, you could encrypt password on your local machine.The way to do it is encrypt your password using key in addition to @Eric Woodruff 's ProxyCommand.A way to...

View Article


Answer by Krzysztof Jabłoński for Can you set passwords in .ssh/config to...

Answering the question you asked, no it's not possible to configure a default password in an ssh config file.But if indeed, as you say, it's "because sometimes I stand away from the PC and when I go...

View Article

Answer by Ingo Karkat for Can you set passwords in .ssh/config to allow...

Here's my elaborate variation on @ArekBurdach's answer. It offers the following extensions:the host can be anywhere in the ssh command-line; i.e. it also supports the ssh <args> <host>...

View Article

Answer by Arek Burdach for Can you set passwords in .ssh/config to allow...

You can create a simple ssh script replacement in /usr/local/bin:#!/bin/bashhost=$1password=`awk "/#Password/ && inhost { print \\\$2 } /Host/ { inhost=0 } /Host $host/ { inhost=1 }"...

View Article


Answer by Eric Woodruff for Can you set passwords in .ssh/config to allow...

How about ProxyCommand:Host Home-raw HostName test.comHost Home User netmoon Port 22 ProxyCommand sshpass -pmypass ssh netmoon@%h-raw nc localhost %pYou can use ssh -W instead of nc as...

View Article


Answer by igor for Can you set passwords in .ssh/config to allow automatic...

There also is sshpass program for that.How to use:sshpass -p MyPa55word ssh me@myservor.com

View Article

Answer by waltinator for Can you set passwords in .ssh/config to allow...

Trading off security for convenience never ends well... Could you use ssh-copy-id from the openssh-client package?From man ssh-copy-id:ssh-copy-id is a script that uses ssh to log into a remote machine...

View Article

Answer by david6 for Can you set passwords in .ssh/config to allow automatic...

I use an application from VanDyke Software called SecureCRT.http://www.vandyke.com/products/securecrt/It is not free, but very reasonably priced. I have used it for years (running on Windows, or using...

View Article

Answer by jcollado for Can you set passwords in .ssh/config to allow...

If you don't really want to use a public/private key pair, you can write an expect script to enter the password for you automatically depending on the destination address.Edit: What I mean is that you...

View Article


Answer by enzotib for Can you set passwords in .ssh/config to allow automatic...

The answer of @BrunoPereira to this question shows an alternative method to connect without explicitly entering a password and avoiding ssh keys.You could create a script, an alias or a function in...

View Article

Answer by Caesium for Can you set passwords in .ssh/config to allow automatic...

No. This is not possible I'm afraid.The only real alternative is to use private keys but you've said you don't want to (why not?).

View Article


Can you set passwords in .ssh/config to allow automatic login?

I'm using Ubuntu 11.10 and ssh for connecting to many servers daily, so I put their parameters in the .ssh/config file like this:Host HomeUser netmoonPort 22HostName test.comIs there a way to put...

View Article
Browsing latest articles
Browse All 16 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>