Questions tagged [authorized-keys]

The tag has no usage guidance.

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

How to disable local port forwarding only in SSH authorized_keys file?

This question is related to this one, here, but the accepted answer for that question does not actually answer the question and is inaccurate, as pointed out in this comment. Basically, I have a ...
jinscoe123's user avatar
0 votes
0 answers
57 views

Windows SSH-Server is only reading first line from "authorized_keys" file

I am trying to SSH from Ubuntu(WSL) to Windows but the OpenSSH-Server on Windows seems to be reading only the first line of authorized_keys file. When I put the SSH-Key I use to SSH from Ubuntu to ...
D_Gamer's user avatar
2 votes
1 answer
2k views

Suddenly, my ssh requires a password--debug1: send_pubkey_test: no mutual signature algorithm

Went to check something on my Ubuntu server: jlouthan@siege  ~/.ssh  ssh metroplex.theologic.us ([email protected]) Password: That is odd because I have ssh keys. Troubleshooting, ...
Joseph Louthan's user avatar
1 vote
0 answers
63 views

Does ssh-keygen have a command to change the setting on a public key?

Does ssh-keygen have an option for setting the values like force-command, no-port-forwarding, no-agent-forwarding on a supplied key? I am thinking of the instance, when someone sends you their public ...
vfclists's user avatar
  • 791
3 votes
1 answer
9k views

ssh authorized_keys file location and permissions

I am confused on the permissions that ssh requires when dealing with custom authorized_keys files. For example, assuming that we have a server the following line in file /etc/ssh/sshd_config: ...
John's user avatar
  • 31
0 votes
1 answer
132 views

How can i switch to root from ad login to send ssh keys to /root/.ssh/authorized-keys

I am trying to send ssh keys to multiple servers from jump server using shell script. I can only login from my ad account and then switch to root and cannot login directly as root. Having this ...
john's user avatar
  • 1
3 votes
1 answer
1k views

Locking and Unlocking SSH Keys after an amount of time

I am trying to have a SSH generated key, where you need to unlock it with a password and then you can login on the server the whole day without password. But when the day is over, the key should get ...
Der Korrigierer's user avatar
0 votes
1 answer
113 views

Use one ssh public key for multiple remote users

I have my one local public key and I am trying to add it to two authorized_keys on a remote server for two different users (ex. users remote1 and remote1). I am able to ssh just fine as remote1; ...
Brian's user avatar
  • 1
1 vote
0 answers
189 views

How to authorize a key to sftp only, and only to a subdirectory?

I need to allow sftp-only access to an account on a machine, where I do not have root, so that a remote user can upload (put) files to a subdirectory, and nothing else. Not having root-access prevents ...
Mikhail T.'s user avatar
11 votes
1 answer
2k views

How can I use ssh to cat to a file in a remote Linux directory if the directory doesn't exist yet?

I'm trying to send the public id_rsa.pub file from my Mac to the ~/.ssh/authorized_keys directory in my home directory at Linux servers so I can then access without logging in each time. From my Mac ...
Doug Lerner's user avatar
1 vote
0 answers
2k 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 ...
dokgu's user avatar
  • 113
2 votes
1 answer
295 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 ...
Federico Taschin's user avatar
1 vote
1 answer
489 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. ...
Felix's user avatar
  • 150
0 votes
1 answer
87 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 ...
Stilez's user avatar
  • 1,655
0 votes
0 answers
209 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 ....
Greg Dougherty's user avatar
1 vote
1 answer
151 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 ...
kol23's user avatar
  • 121
7 votes
1 answer
10k 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 ...
Tad Lispy's user avatar
  • 871
1 vote
1 answer
2k 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 ...
Dave's user avatar
  • 1,065
0 votes
1 answer
2k 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 ...
Abhinav's user avatar
1 vote
1 answer
72 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/...
RTF's user avatar
  • 556
0 votes
2 answers
7k 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 ...
BrunoMCBraga's user avatar
2 votes
2 answers
302 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: ...
Rob360's user avatar
  • 21
3 votes
3 answers
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 ...
pnongrata's user avatar
  • 2,782
0 votes
3 answers
5k 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 ... ...
Cheetah's user avatar
  • 1,243
1 vote
1 answer
739 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 ...
Ke.'s user avatar
  • 333
3 votes
5 answers
18k 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 ...
paddy's user avatar
  • 1,199
-1 votes
1 answer
226 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 ...
user avatar
0 votes
1 answer
719 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 ...
Jarvin's user avatar
  • 7,236
1 vote
1 answer
498 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 ...
gsgx's user avatar
  • 1,023
5 votes
5 answers
6k 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 ...
Doppelganger's user avatar
4 votes
3 answers
9k 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, ...
Vi.'s user avatar
  • 16.8k