Questions tagged [authorized-keys]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
129 views

OpenSSH resetting connection when I try to SSH

I'm trying to set up my local Windows 7 machine to receive SSH connections so I tried to follow this guide on how to install OpenSSH into a Windows machine to server as an SSH server. I was able to ...
2
votes
1answer
31 views

SSH server checking public keys from another source

In an ssh connection with key authentication the user sends the ID of the public key he wants to use. Then, the server checks the authorized_keys file for the publick key. I'd like the server to not ...
1
vote
1answer
91 views

Why does my tar via ssh (command via authorized_keys) corrupt the archive?

From a backup-machine I want to pull tgz dumps of a production server. Both machines run ubuntu 16.04. Therefore, the backup-server connects via ssh and a specific ssh to to the production server. ...
0
votes
0answers
569 views

SSH Server refused public-key signature despite accepting key

I did the following on a Windows Server 2008 R2: Installed OpenSSH 0.0.24.0 by executing this command -> powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1 and generated the keys with ...
0
votes
1answer
40 views

Using SSH authorized keys to roll out privileged file update across a LAN?

I've got a server that from time to time automatically updates a set of privileged files (eg, certificate keys, configs etc). It needs to save those files on other systems on the LAN. I know roughly ...
0
votes
0answers
134 views

Linux: How to setup authorized_keys so can log in as different user

local user ID: GregD remote user ID: GregTD I know how to setup authorized_keys so I can log in as GregD. but I need to connect to a server as GregTD, and despite having added my authorized_keys to ....
1
vote
1answer
135 views

How to setup private key ssh connection? [closed]

Lets say that to login to a remote address instead of a ssh login and password I have received rsa private and public keys. Is it safe to use it and how should I add them to the .ssh folder? manually ...
2
votes
1answer
4k views

SSH: Effects of no-pty login option in authorized_keys

I'm confused by the behavior of restrict or no-pty login options prepended to a key in ~/.ssh/authorized_keys. For a given key I was intending to prevent any interaction except for starting an SSH ...
1
vote
1answer
833 views

OpenSSH “from” Authorization Option Working Only With IP Addresses, not Hostnames

I am using OpenSSH 6.7p1 on Debian 8 (Jessie). I am using public key authentication. As part of that, I am using the "from" authorization option in my authorized_keys file. I am finding that when I ...
0
votes
1answer
610 views

Importing Multiple key in the authorized_keys for same host

I am setting up a SSH password less connection setup for two server for the first time. I have imported a public key earlier by vi to authorized_keys, but since this was failing so i have asked ...
1
vote
1answer
67 views

Is it possible to acquire an SSH authorized RSA private key just by having access to the server? [closed]

Is it possible to get hold of an RSA private key (pem file) simply by having (root) access to a server that authorizes ssh access using that that private key. For example, can the entries in .ssh/...
0
votes
2answers
3k views

SSH authorized_keys and newline

I am trying to configure SSH with public-key authentication on Debian. I can't seem to get it to work because auth.log keeps saying that can't read key type:...(key line)\n. It keeps complaining ...
2
votes
2answers
256 views

Strange behavior on SSH public key login

I'm really stuck here. I've been trying to ssh into my ec2 server from local with a public key but it is not working. -> I get permission Denied (public key). The set up is as follows: Local: ...
3
votes
3answers
8k views

Why is SSH not honoring my authorized keys?

I have 2 laptops at home, both running Ubuntu 12.04 (Desktop), and both using the same NetGear wifi router. I used a technique called "MAC binding" on one of the machines so that the router always ...
0
votes
3answers
2k views

Limiting SSH to SFTP only?

I use SSH keys to allow passwordless logons to my box. I want to limit them to SFTP only. I have the following in my authorized_keys file which appears to work: command="internal-sftp" ssh-rsa ... ...
1
vote
1answer
653 views

using sftp and having www file access at the same time

Im getting confused about permissions and sftp access in ubuntu. I have a user who has access to the www folder : <username>:www-data I have set the following in sshd_config: Subsystem sftp ...
1
vote
5answers
12k views

Scripting an 'empty' password in /etc/shadow

I've written a script to add CVS and SVN users on a Linux server (Slackware 14.0). This script creates the user if necessary, and either copies the user's SSH key from an existing shell account or ...
-1
votes
1answer
157 views

automate SFTP process with different ssh version

I am totally new to this. Please bear with me if my question is totally nuts. I am trying to setup rsa keys between two servers. I tried the following steps. ssh-keygen -t rsa copied the id_rsa.pub ...
0
votes
1answer
706 views

Authorized keys only from external IP, but passwords allowed internally

I just set up my sshd_config to only accept authorized key instead of passwords to help secure my network. Is it possible to make this restriction only apply to external IPs and allow me to still use ...
1
vote
1answer
217 views

SSH ForcedCommand causes connection to close

I'm SSHing a server (I'm on cygwin using openSSH), and I went into authorized_keys and modified the file as follows: ssh-rsa [key] to command="echo Working" ssh-rsa [key] Now when I connect to the ...
3
votes
5answers
4k views

SSH without password doesn't work with user postgres

I've tried manually adding the pub key to authorized_keys and authorized_keys2. I've also double checked the permissions on .ssh (700) and authorized_keys (644). I can login without password on the ...
3
votes
3answers
6k views

ssh-copy-id and duplicates in authorized_keys

I want to type password only once when connecting to SSH so I use ssh-copy-id and install my pubkey into authorized keys. But I don't keep track which servers already have my key and which does not, ...