Questions about the OpenSSH implementation of the ssh protocol.

learn more… | top users | synonyms

1
vote
2answers
17 views

Forward ssh for git user to git server

It is surprisingly difficult to find information on this simple problem. Like many people we run a gitlabs/gogs server on a remote instance. Currently it listens on port 10022. We also run ssh on ...
1
vote
1answer
16 views

ssh_config: Add a host section that matches IPs even when connecting via hostname

I want a host section in my ssh config that matches any local IP: Host 10.* 192.168.*.* 172.31.* 172.30.* 172.2?.* 172.1?.* setting setting ... This works as long as I connect directly to a ...
-1
votes
1answer
27 views

How can I Log ssh login passwords attempts?

I need to log ssh passwords attempts. I read somewhere you could get this done by patching openssh but I don't know if that is the correct way to get this done. I am using Arch. EDIT: I want to get ...
0
votes
1answer
26 views

Make sshd override login shell of a group of users

My users are shared across a number of machines via LDAP. For one of those machines (let's call it 'fileserf'), I would like to restrict some users in what they can do (actually: prevent them from ...
2
votes
1answer
39 views

SSH: display warning when using (deprecated) ssh-dss key

With the 7.0 release, OpenSSH disabled ssh-dss keys. The not-so-recommended workaround is to explicitly re-add DSA key support to .ssh/config, which will eventually be dropped by a later OpenSSH ...
2
votes
0answers
31 views

MOTD not displayed after installing openssh from source

On Debian Wheezy the default openssh server package displays the motd from /etc/motd. When i compile it from source (openssh-6.0p1) it won't display the motd anymore after an ssh login. Configure ...
2
votes
0answers
35 views

Problem with ssh connection [closed]

I need to connect to my computer via ssh. I have to use VPN, because the remote machine is my computer at my workplace. I have no problems with using VPN. So, I installed open ssh server from the ...
2
votes
3answers
41 views

How to log into a single SSH host without passphrase?

I usually have to access a couple of remote and local SSH hosts, this works perfectly, I actually want to have to type in the passphrase every time. However, there's a single SSH host on my local ...
1
vote
1answer
37 views

How to diagnose SSH connection timeout issue?

I am Debain and Linux beginner so please bare with me. I have a VPS running Debian 7, that I connect to using PuTTY from my Windows machine. Most of the time, PuTTY connects fine and I can log in ...
1
vote
0answers
20 views

Proper permissions on SFTP upload and download subdirectories in a user's home directory?

I have a server running OpenSSH. I've setup an SFTP server that users can log into. I have created user userName with a folder at /sftp/userName with permissions of 555 and owner root. This folder has ...
3
votes
1answer
39 views

What is the purpose of the 'ssh' group?

There is a system user named sshd on my system, and a group named ssh: $ cat /etc/passwd | grep ssh sshd:x:120:65534::/var/run/sshd:/usr/sbin/nologin $ cat /etc/group | grep ssh ssh:x:117: My guess ...
0
votes
1answer
28 views

Can I read the public SSH key of another user? [duplicate]

The public component of SSH keys theoretically don't need to be kept private. It was therefore to my surprise that I was unable to read the public key of another user on the system: andreas:~$ cat ...
0
votes
1answer
44 views

SSH still asking for password even after I have tried everything (that I know of)

ssh is still asking for a password, even though I did everything by the book. I have included all output, right from the start. Any ideas? Thanks! Gary 1) Generating public/private rsa key pair and ...
0
votes
2answers
172 views

What are the keys accepted by openSSH?

Question is simple: What are the (private) key types and (their specification - format, syntax) accepted by current openSSH? The vague answer "the keys generated by ssh-keygen" is not accepted - ...
1
vote
1answer
34 views

Force SSH password prompt without restarting the service [closed]

I've met a problem when I configure SSH users in Centos7. There are two computing nodes, for example: hostname: node1 users: user1 user2 hostname : node2 users :user1,user2 If I input the ...
2
votes
1answer
26 views

How to track ssh connection time, disconnection time and idle time?

How can I track ssh sessions on my server including ssh connection time, disconnection time and idle time? Here's what I have for connections: cat /var/log/{auth.log,auth.log.1} | grep -i Accepted | ...
4
votes
1answer
31 views

Detecting the remaining lifetime of an ssh-agent identity

The ssh-add command lets you specify the lifetime of an identity being added to ssh-agent. For example, if I type ssh-add -t 1h the identify will expire after 1 hour. I can then list the identities ...
0
votes
2answers
56 views

Check what ssh keys are accepted on server

I have a directory full of ssh private keys, and I'd like to check what keys are accepted on what server without logging in. How can I do that without adding the ssh-keys to my authentication client ...
0
votes
0answers
13 views

Why does `ssh-keygen` keep asking for keyfile name, even after passing the `-f output_keyfile` option?

I'm trying to automate generating an SSH key using ssh-keygen from OpenSSH_7.1p1, OpenSSL 1.0.2d 9 Jul 2015 (as reported by ssh -V). Running ArchLinux 4.2.5-1-ARCH (as reported by uname -r). First ...
-2
votes
1answer
37 views

What is the maximum number of ssh connections we can do and how can i check in linux

I am trying to figure out how many max number of ssh connections we can do to a machine. where we need to change this value if i want more or reduce the connections. i mean the path of the file.
2
votes
1answer
50 views

ssh ignores ssh-agent

I'm using a new system and ssh is ignoring my ssh-agent. Note I've been doing this for years elsewhere, it is not a new thing I am confused about. With bash: > echo $SSH_AGENT_PID 1234 > echo ...
1
vote
2answers
24 views

How is OpenSSH sftp jail/chroot working?

This question is actually too broad... What I really want to know is whether or not it actually chroots and, if so, how a SSH user deamon[1] can be launched in that jail in spite of the obvious lack ...
1
vote
2answers
100 views

SSH login not accepted, and no delay between ssh login attempts

When ssh'ing to my server (RaspPi running Arch), it doesn't accept my password (which I'm 98% sure is correct), and the usual delay before Permission denied, please try again. is not there. Elsewise, ...
0
votes
0answers
33 views

Upgrading from SSH1 to SSH2 on Linux RAID Array command line

Any ideas of how I could upgrade from SSH-1 to SSH-2 on RAID array on the command line. Raid Model: HP StorageWorks MSA2312i. Below shows that the raid node 10.5.5.75 has SSH-1.99. I need to ...
0
votes
0answers
477 views

SSH Connection Refused In CentOS?

For a week, SSH was working perfectly. Today I restarted my server and I got this error in my Mac terminal: ssh: connect to host 162.243.7.7 port 22: Connection refused This is very odd... I am ...
1
vote
2answers
196 views

Reverse SSH “Connection closed by ::1”

I try to establish a remote ssh connection. I tried to connect "Remote" with ssh -fN -R 10110:localhost:22 GatewayUser@GatewayHost and "Gateway" with ssh -p10110 RemoteUser@localhost I got the ...
0
votes
1answer
103 views

Show only last login in the SSH welcome message

When i log in to my raspberry pi it shows me this message, i like the fact that it shows the last login but the info is too long (also because i log in from mobile devices). Linux RaspberryPi 4.1.11+ ...
0
votes
1answer
48 views

Auto-inputing ssh password in shell scripts on Linux [duplicate]

I can use ssh command and provide password and connect to another server. But I need to pass password in the shell script. how?
1
vote
0answers
73 views

storing ssh remote executed command output to variable is blocking. connection not ending?

I'm not quite sure what the issue is. I'm on Kali Linux 2.0 right now, fresh install. The following worked on Ubuntu 14.04 but it's not working anymore (maybe I accidentally changed it?). It looks ...
4
votes
1answer
132 views

Is there a downside to enabling X11 forwarding in ssh?

For some remote work, I sometimes use X11 forwarding on ssh connections, but usually don't. But, instead remebering to use the -X flag on my ssh connection, I can also set ForwardX11 yes to enable it ...
6
votes
2answers
1k views

Can't login to a remote machine with key

I used to login to a remote machine( I have to root of this machine) using key. Both my local machine and remote machine is in f23. From last few days, I can't login to this machine using key. It is ...
-1
votes
1answer
977 views

ssh error bash: 22: command not found

I am pretty new to unix, so please bare with me... when i try to connect to my server running ubuntu server through terminal on my ubuntu workstation I get this error: bash: 22: command not found ...
0
votes
1answer
39 views

SSH run command in users rbenv enviroment

Anyone know how to make ssh source the users enviroment? ssh -Y -t old-dash '"bundle exec rails server" bash: bundle exec rails server: command not found Connection to old-dash closed. ...
1
vote
1answer
60 views

can I use ssh to send build command for android building?

I'm new in Linux, but learning bits by bits.. So please give explanation too, instead of only the answer, to help me understand about why and how. Currently I want to build an android rom with ...
0
votes
0answers
40 views

Connect to work pc via ssh

I have a PC on my work which I want to connect to from home (on both machines Ubuntu 14.04 is installed). I already opened a port in my work firewall. Now I found an instruction to create a pseudo ssh ...
2
votes
2answers
98 views

How do I configure sshd to 1) require public key _and_ 2) require a password for login?

How do I configure sshd to 1) require public key and 2) require a password for login? Note that I am not referring to the symmetric encryption of the client's key here. I am referring to a server-side ...
2
votes
2answers
65 views

Openssh server: fatal: Too many listen sockets. Enlarge MAX_LISTEN_SOCKS [closed]

I am using Ubuntu 14.04 LTS. I want to create an openssh server, which listens on many ports (at least 100 different ports). Multiple clients would connect to this server, but each client would need ...
-1
votes
1answer
31 views

Manually install SSH service

I have a CCTV camera DVR at work that only allows local login for DVR software management via a command line console (looks like a GUI you'd get on a serial console) or web login for viewing the ...
1
vote
1answer
157 views

How to force Debian to use a newer version of OpenSSL?

Today I installed ,,empty'' (just minimal set of packages) Debian 8.1 on my VirtualBox. I wanted to play with compiling apps from sources. I started with OpenSSL: compiled from sources OpenSSL ...
0
votes
3answers
116 views

Have a server on DigitalOcean only accessibly by SSH, what happens if my computer breaks?

I bought a server/droplet on Digital Ocean and per its recommendations disabled password login so it could only be accessed by SSH key. I understand the SSH security mechanism basically makes it so ...
0
votes
1answer
110 views

Installed OpenSSH on Mint 17 but it doesn't seem to be running

So I've installed OpenSSH on Mint rafaela 17.2, but it doesn't seem to be running when using the modified config file. Not sure why service says its up, but I don't have a PID, don't have a listener, ...
0
votes
1answer
48 views

Disabling openssh host key checking on LAN

If I want to specify for LAN addresses that I don't want to deal with host keys, how do I do that? /etc/ssh/ssh_config Host 192.168.*.* StrictHostKeyChecking no UserKnownHostsFile /dev/null ...
1
vote
2answers
81 views

Unexpected Match behavior in sshd_config

I'm trying to configure the following restrictions in my sshd_config: Users with local IP addresses face no restrictions Users with non-local IP addresses, who are in the sftp group, are allowed to ...
1
vote
1answer
38 views

Is it possible to chroot sftp service as unprivileged user?

I currently have an sftp-only sshd service running as an unprivileged user that works fine. When adding ChrootDirectory %h to the separate user_sshd_config, the user is immediately disconnected after ...
5
votes
2answers
1k views

How do I list available host key algorithms for an SSH client?

So ssh has the option HostKeyAlgorithms. Sample usage: ssh -o "HostKeyAlgorithms ssh-rsa" user@hostname I'm trying to get the client to connect using the servers ecdsa key, but I can't find what ...
1
vote
1answer
120 views

Prevent ssh-keyscan from generating output

Problem: When running ssh-keyscan in cron it emails me the output of ssh-keyscan every day. The email simply contains the following. # <hostname> SSH-2.0-OpenSSH_5.3 My (simplified) cron ...
1
vote
2answers
74 views

Open the SSH Door to a Knocking Friend

I am logged into my Debian machine. I want my friend to get in via SSH. He comes to authenticate as the user friend. My machine asks him for a password. He does not know the password. I want to ...
0
votes
2answers
22 views

Why are my OpenSSH keys stored in OpenLDAP returned base64 encoded

I'm doing an experiment on my Ubuntu server and have stored OpenSSH keys in the OpenLDAP server. There are enough examples around how to achieve this. A good source is this one. Somehow my keys are ...
2
votes
1answer
285 views

scp does not honor .ssh/config

Used for a few years arcfour as default cipher for SSH2 connection in my ~/.ssh/config file host namaka hostname localhost port 2022 ciphers arcfour IdentityFile ~/.ssh/virtualbox ...
2
votes
1answer
32 views

Display full settings of sshd

The OpenSSH daemon has many "default" values for its settings. So looking at the sshd_config might not give someone the complete set of active settings. How to display the full sshd configuration ...