Comments (4)
The "Private key file is encrypted" error is often misleading. We don't rely on ssh-agent forwarding. We connect directly to the host and use a proxy command from there to the jail. My own key is encrypted and I only need my local ssh-agent with no forwarding.
Most of the time there is another issue causing the connection problems. Most likely authorized_keys in the jail doesn't have your key. Maybe the wrong username is used, or sshd isn't running in the jail. I also had that issue when I still used a DSA key and newer sshd disabled their use.
from ploy.
hrm… there is, indeed, no ssh daemon running
toor@meenix ~# ezjail-admin console i_eena_me
Last login: Mon Mar 13 16:02:54 on pts/0
FreeBSD 11.0-RELEASE-p8 (GENERIC) #0: Wed Feb 22 06:12:04 UTC 2017
Gehe nicht über Los.
root@i_eena_me:~ # ps awwuuxx
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
root 15901 0.2 0.6 19600 2904 0 SJ 16:03 0:00.01 -csh (csh)
root 15891 0.1 0.5 43732 2252 0 SJ 16:03 0:00.02 login [pam] (login)
root 15277 0.0 0.3 10464 1600 - SsJ 15:03 0:00.03 /usr/sbin/syslogd -ss
root 15372 0.0 1.0 55676 5020 - IsJ 15:04 0:00.01 /usr/sbin/sshd
root 15402 0.0 1.0 20592 4820 - SsJ 15:05 0:00.11 sendmail: accepting connections (sendmail)
smmsp 15405 0.0 1.0 20592 4664 - IsJ 15:05 0:00.01 sendmail: Queue runner@00:30:00 for /var/spool/clientmqueue (sendmail)
root 15409 0.0 0.4 12564 1816 - IsJ 15:05 0:00.06 /usr/sbin/cron -J 15 -s
root 15903 0.0 0.4 21164 1972 0 R+J 16:03 0:00.01 ps awwuuxx
root@i_eena_me:~ #
from ploy.
uhm, there is:
root 15372 0.0 1.0 55676 5020 - IsJ 15:04 0:00.01 /usr/sbin/sshd
from ploy.
yes! thanks. my eyes are tired already…
so, i found the issue, when i use user: toor
the $HOME
is assumed to be in /usr/home/toor
, rather than in /root
, so the authorized_keys
file was copied to the wrong location (in the basejails already)
from ploy.
Related Issues (20)
- Uploading personal public SSH key rather than using Amazon keypair HOT 1
- Problem with fabfile HOT 6
- boto-2.0rc1 partly works with mr.awsome
- Creating an instance not clearly documented HOT 1
- More ssh login issues HOT 1
- problem starting a stopped instance HOT 3
- bin/assh ignores any additional options to ssh (except -l) HOT 1
- don't barf if user has no ssh config HOT 1
- assh does not support non-default config from commandline HOT 4
- Rename repository description HOT 1
- Add ansible to install_requires HOT 2
- [FreeBSD] the ploy command is looking for ploy.conf in the wrong place HOT 4
- [enhancement] Add support for plain jails HOT 6
- Upload tar.gz for sdist HOT 1
- Dead link to readthedocs HOT 1
- re-enable multiple masters safely HOT 1
- Look at monkeysphere
- Fingerprint type from public key HOT 6
- Kickstart installation mechanism HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ploy.