Questions about the OpenSSH implementation of the ssh protocol.

learn more… | top users | synonyms

0
votes
1answer
28 views

sshd AllowGroups group not granting access

I have this weird situation: On a Centos 6.6 box, in my sshd_config, I have the line AllowGroups foo bar baz just like on all the other servers. However, when user baz (whose group is baz) tries to ...
3
votes
1answer
29 views

How to limit connections to OpenSSH server to using private keys necessarily with passphrase?

Is there any way to configure OpenSSH (/etc/ssh/sshd_config) server to allow private keys necessarily with passphrase?
0
votes
0answers
40 views

how to manage stdout/stdin buffering while doing ssh using openssh?

I have an embedded system -Linux, which has openssh utility - Linux. I am trying to do ssh from first device to second device and from second device to the third device. When I am doing the second ...
0
votes
1answer
186 views

ssh key_load_public: invalid format warning

SSHing into my system succeeds but even without the -v flag I get key_load_public: invalid format message. Below is the output w/ using the verbose flag. Specifically debug1: key_load_public: No ...
0
votes
1answer
19 views

Under remote (ssh) .. How do I remove all remotes and root logins [closed]

How do you delete ssh if you suspect ra root administrating your macbook.. And are under a control by ssh remote?
1
vote
2answers
58 views

Why does SCP fail when “RequestTTY force” option is enabled?

In my SSH config file, I have to enable the RequestTTY force for some important reasons. And currently my config file looks like this: Host x.x.x.x HostName yyyy StrictHostKeyChecking no ...
2
votes
2answers
45 views

pssh (Parallel-ssh) passing different parameter for every host

I have a file called hosts which looks as follow: host1 host2 host3 host4 ..... On these machines there is also a local user named as the machine name. host1 user is created on host1 host and so ...
0
votes
1answer
29 views

Why does SSH client offer public key to SSH server?

If I enable -vvv when logging in to a SSH server using key-based authentication, then according to debug messages SSH client offers public key to SSH server: debug1: Offering public key: ...
1
vote
1answer
33 views

The most secure Alpine SSHD Configuration

I'm experimenting with Docker's alpine image and OpenSSH. The sshd_config file that ships with alpine has everything commented out by default. I only uncomment Port 22. I assume this is the most ...
0
votes
1answer
125 views

SFTP, SSH Couldn't read packet: Connection reset by peer [duplicate]

My sftp -v to host returns, Connecting to xxx.xx.xx.xx... OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: ...
1
vote
1answer
59 views

Specifying SSH KexAlgorithms works at CLI but not via ssh_config [duplicate]

By default, my SSH client disallows the use of the diffie-hellman-group-exchange-sha256 key exchange algorithm. However, I need to access a server on 10.0.0.1 that requires the use of that algorithm. ...
5
votes
2answers
112 views

options override for openssh client configuration

Since I want to protect my ssh connections, I set some global cipher suite options to restrict set of used algorithms. But recently I've encountered a server which doesn't support some of those ...
1
vote
1answer
94 views

SSH access asking for password in local network but public

I have a problem when ssh to another server. I created ssh-key and copied it to other server. -bash-4.2$ whoami postgres -bash-4.2$ ssh-keygen Generating public/private rsa key pair. Enter file in ...
0
votes
0answers
100 views

SFTP connection using public key (without password) not working

I need to provide sftp access to a client to my ftp server and this is working fine. For them to access our server without using password - we have followed the below steps on our server. Created ...
5
votes
1answer
210 views

Can I get SSH to use an askpass program even if it was run from a terminal?

man ssh says: SSH_ASKPASS If ssh needs a passphrase, it will read the passphrase from the current terminal if it was run from a terminal. If ssh does not have a terminal associated with ...
0
votes
2answers
82 views

How to use openSSH for disc encryption at boot time (OpenSSH vs. Dropbear)

Basic setup: - Operating System: CentOS 7 (64 bit) - Grub 2 - separate boot partition with ext4 - luks encryption (aes-xts-plain64:sha512) on two disc partitions which both need to be unlocked by ...
0
votes
0answers
16 views

Printing to a remote network printer over ssh using a proxy server [duplicate]

I want to be able to print to a network printer at home from a remote location. I don't want to open a port on my router. Is it possible to use a SSH tunnel to connect via my home server (Fedora) ...
0
votes
0answers
15 views

Printing to a remote network printer over SSH [duplicate]

I want to be able to print to a network printer at home from a remote location. I don't want to open a port on my router. Is it possible to use a SSH tunnel to connect via my home server (Fedora) ...
1
vote
2answers
90 views

Cannot ssh without password [duplicate]

I have been trying to set up remote file copy without password between 2 Linux machines. I have appended my .ssh/id_rsa.pub from local to remote .ssh/authorized_keys. I have also set up correct file ...
0
votes
1answer
58 views

Why am I still being asked for an ssh password when I'm using private key authentication?

I have Linux mint on my pc. I have a public/private key pair to ssh into my router without having to type the password. It works on Windows using putty, but Mint isn't when I run it from terminal. ...
1
vote
1answer
67 views

Change SSH banner which is grabbed by netcat

I have installed openssh server. I want to disable banner which is shown when I do :: nc 0.0.0.0 22 It shows something like this :: SSH-2.0-OpenSSH_6.7p1 Raspbian-5 . How to make it show something ...
1
vote
0answers
58 views

Slow SSH connection on embedded platform

I am operating an embedded device running the linux core. I have OpenSHH_4.9p1 installed running in debug mode and trying to establish an SSH connection using PuTTY. After the login screen everything ...
0
votes
0answers
44 views

Ansible: running from virtualenvwrapper with pip installation

I'm trying to test ansible with a "pip" installation of ansible in a virtualenv of python managed by virtualenvwrapper. However, I am having problems to use the ssh-agent and the SSH keys: (ansible)$ ...
2
votes
1answer
44 views

How to convert open-ssl created private key to openssh private key?

I have created an open-ssl private key which I would like to use to connect to my server through ssh. The openssl key was generated during certificate creation and I have to use this key on putty. The ...
1
vote
0answers
88 views

Freeradius PAM create user and home on login

At this moment i have installed freeradius and PAM radius properly. When i create an account on the system and set a password in /etc/raddb/users.conf the user can login. Sudo also works great with ...
3
votes
1answer
88 views

How to disable password prompt from ssh client side?

I have a script that relies on public/private key ssh authentication. The problem is that some systems are misconfigured and do not have the proper ssh public/private key trust set up. When that ...
0
votes
1answer
52 views

Cannot setup password less ssh on local host

I followed all the steps given in the following answer - 1. ssh-keygen -t rsa Press enter for each line 2. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys 3. chmod og-wx ...
0
votes
0answers
64 views

ssh authentification without-password is not working anymore

I used to run an ssh without password on my servers (after I copied my id). Today, it stopped working, here is a debug: OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data ...
3
votes
2answers
22 views

OpenSSH import configuration from external files

I've been searching around with no luck, so I'm just asking to make sure. Is it possible to import an external config file? Example with ~/.ss/config file : Hosts * IdentityFile ...
1
vote
2answers
59 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
34 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
2answers
58 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 ...
1
vote
1answer
98 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
73 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
43 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 ...
1
vote
0answers
60 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
50 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
148 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
71 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
108 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
39 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
49 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 ...
-1
votes
2answers
270 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 - ...
2
votes
1answer
41 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
67 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
87 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
18 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
89 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
142 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
37 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 ...