The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
3answers
52 views

ssh-keygen create ssh key for linux user

Being a Sudo user, is it possible to create a SSH key for an user in the same Linux server? This Sudo user doesn't have a Switch user privilege. I have a server where I Login as sudo user say ...
1
vote
2answers
120 views

SSH: Unable to login with key after disabling password authentication

I have an ubuntu server is on Amazon EC2. Earlier I used to login with the original pem key file generated at instance launch time. ssh -i /path/to/key.pem ubuntu@instance-dns-name.com I tried to ...
1
vote
2answers
140 views

prevent files modification from users: is this method safe?

I was wondering today if there was a way to enforce a non root user to have a specific authorized_keys file (among other sensible files). I came up with this solution. Disable StrictModes in ...
0
votes
2answers
42 views

Are the keys created and added when launching an EC2 instance added to ~/.ssh/authorized_keys for ec2-user?

Are the keypairs created and added when launching an EC2 instance added to ~/.ssh/authorized_keys for the ec2-user ? or is there another mechanism used? If so, would the key have a name like 'master'? ...
0
votes
2answers
122 views

password-less ssh works to connect to one user on a remote machine but not another

The remote server is running CentOS 5.5. I have created an rsa key from my client server, and copied it into /home/hadoop/.ssh/authorized_keys. This worked fine - I can ssh to hadoop@remoteserver ...
4
votes
1answer
931 views

ForwardAgent in Jenkins

I'm trying to enable ForwardAgent in the "Publish over SSH" Jenkins Plugin. This would allow jenkins to execute deployments, rsyncs and svn+ssh checkouts on remote servers. But there's no option for ...
1
vote
1answer
256 views

How do I properly generate a keystore for ssl?

I'm trying to get an ssl certificate from godaddy for use with jetty. These are my steps: keytool -keystore keystore -alias jetty -genkey -keyalg RSA -keysize 2048 What is your first and last name?: ...
1
vote
1answer
98 views

Can access sshd-server with one user, but not with an second

I am using public-private-keys to access my server. With the user "peter" I can access the server normal, but with the user "git" I can not access the server. Its always asking me for a password. If I ...
1
vote
1answer
196 views

How to rsync to a server using ssh keys

I'm running on a Mac, and I want to set up a crontab to rsync from my VPS on a weekly basis to grab some backup archives. I'm using ssh keys (no passwords allowed on the VPS), and normally I can ssh ...
1
vote
1answer
141 views

How to get an Ubuntu root account to forward ssh keys as the forwarding machine

UPDATE: the whole thing described below works fine for non-root accounts on the remote machine. That is, this works: anderson@client -> nonroot@remote -> anderson's-ssh-key@github.com This ...
1
vote
1answer
416 views

Problems accessing EC2 instance with SSH key pair

Just set up a new EC2 instance, downloaded the pem file and currently cannot get into the box. I'm using the command... $ ssh -i .ssh/key.pem ubuntu@ec2-176-34-183-***.eu-west-1.compute.amazonaws.com ...
1
vote
1answer
242 views

SSH dns issue giving break-in error

Address ..*.* maps to ec2---*-*.compute-1.amazonaws.com, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT! I keep getting this when I try to log-in to my remote server. I have ...
1
vote
1answer
57 views

Is it possible to kill SSH connections that aren't running a command (e.g. with -N)

If a client does not execute a command (e.g. with -N) within some timeframe (1-2 seconds) after establishing the SSH connection, I'd like to terminate it from the server. Unfortunately, ForceCommand ...
1
vote
1answer
254 views

How do I arrange for an ssh key with a passphrase to be loaded and available in ssh-agent to other processes on Windows startup?

I'm setting up automated deployment of applications in a Windows environment from continuous integration (TeamCity build-agents), and using cygwin + openssh to perform the remote-execution part of ...
0
votes
1answer
104 views

sshfs mounts from command line but not through fstab

I'm able to mount an sshfs network share from the command line (using Ubuntu 14.04), like this: sshfs server-name:/usr/local/things /home/myname/stuff but I can't make it persistent using fstab. ...
0
votes
1answer
41 views

Ssh host key verification

I have a Server behind a Port-forwarding Firewall. Server <---> Firewall <------> NAT Port 222 | -----------> VPN I can ssh per key into it from ...
0
votes
1answer
37 views

seamless ssh with condition

I am looking for a way of seamless ssh in a way that when user does ssh through shell, it will be disallowed (or normal rules apply) but if a process (non-interactive) tries to ssh with the same user ...
0
votes
1answer
618 views

Can not log in to Amazon EC2 instance (Beginner)

I am having difficulty logging onto my Amazon ec2 instance. I set it up, downloaded the key. At first it complained because my permissions were setup correctly. Then I executed: chmod 400 ...
2
votes
0answers
37 views

Specifying multiple SSH signed certificates for one Identity file

I am looking to implement signed certificates for SSH authentication. I have followed the steps here and am now trying to figure out how I am going to implement it on my systems. As an example, we ...
2
votes
0answers
93 views

ssh to ILO on a DL380 gives key_verify failed for server_host_key

When I try to do connect to the ILO 4 of a DL380 I get the following error: ssh -vvv ilo@me2_ilo OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 debug1: Reading configuration data ...
2
votes
0answers
121 views

Unable to force passphraseless ssh authentication while port forwarding

I'm completely at a loss as to what is preventing my local machine from authenticating the connection that is being forwarded from the remote server. I've read a ton of the posts on here regarding ...
1
vote
0answers
162 views

Linux TACACS+ auth for SSH but allow users to use public key auth

we have running tacacs environment for centralised login to our routers, firewalls etc and even most of our linux boxes to ssh what we would like to do is allow users to authenticate to SSH via ...
1
vote
0answers
533 views

How to configure Centos 5.3 using OpenLDAP to store and serve SSH public keys?

I want to be able to manage all my users logins via OpenLDAP. I am using Centos 5.3, OpenSSH 4.3p2-42 and OpenLDAP 2.3.43. I have installed GOsa2. Is there a GOsa plugin to manage the SSH keys in ...
0
votes
0answers
76 views

SSH not working when called by automated script

SUMMARY: My script which includes ssh runs fine from the command line but the ssh part does not work when the script is called by an an automated daemon (apcupsd). DETAIL: I've got an ESXi server and ...
0
votes
0answers
46 views

Encrypt MySQL column with ssh-key forwarded by ssh-agent

I would like to keep sensitive data such as user's e-mail address in MySQL database in encrypted form. Is it possible to encrypt/decrypt mail column in MySQL using ssh-key forwarded by ssh-agent on ...
0
votes
0answers
181 views

Capistrano, EC2, Permission Denied despite all user info being correct

So I'm using WP-Stack and trying to deploy from my local machine to an EC2 instance. Ive follow capistrano's SSH literature and I can for instance get the server info by just running SSH and the ...
0
votes
0answers
53 views

SSH between macs in a local environment, full control on each?

I'm attempting to use my Mac Mini as my "central server" in my local environment and then I develop on it, it runs nginx, php-fpm, etc. Everything is working fine. But I wish to do capistrano ...
0
votes
0answers
30 views

environment=“NAME=value” in authorized_keys file leading to “Server refused our key”

In "man sshd" one can find that several options can be used for given key in .ssh/authorized_keys. I wanted to use environment="NAME=value" for determining which key was used for authentication. But ...
0
votes
0answers
202 views

Passwordless SSH key copied from one server to another now asks for passphrase

I'm using chef to build a server. I generated a passwordless SSH keypair on one server and added the public & private keys to chef. After testing, it worked. When I provision another server and ...
0
votes
0answers
175 views

Unable to mount with sshfs

I'm trying to mount a remote drive using sshfs using my fstab. Both the remote directory and the mount point are /home/media. When I type mount /home/media I get the error: 'read: connection reset by ...
0
votes
0answers
169 views

ssh key forwarding works with -i flag but not with IdentityFile in config

I'm trying to get ssh key forwarding to work so that I can ssh to a server and then use my local private key to then access another server. All works fine if I do ssh -A -i <identify file> ...
0
votes
0answers
314 views

Permission denied(public key) error when login to Ec2 instance

I am trying to ssh the Ec2 instance with the following private key, but it's throwing an error : Permission denied(public key). Here is the syntax: **ssh -i gs.pem -v ...