The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
151 views

Unable to connect to a linux box from a windows box using keys

This is the dumbest thing because I have done this a load of times before and never had issue so I am sure I am just doing something daft but I can't for the life of me figure it out. I am trying to ...
0
votes
1answer
230 views

SSH known_hosts holds duplicate keys for same server

I notice my local ~/.ssh/known_hosts file has two entries for the same machine on the local LAN: somemachine,192.168.1.200 ssh-rsa KEY... somemachine.search.domain ssh-rsa KEY... It's the same ...
1
vote
1answer
231 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 ...
4
votes
3answers
359 views

Allow only specific keys in agent forwarding?

Is it possible to use agent forwarding excluding all keys from being forwarded, except ones specifically stated? Alternatively, are there any ways to specify the order the keys are tried per session? ...
2
votes
1answer
532 views

SSH How to ignore checking IdentityFile?

I have setup a config file located at "~/.ssh/config" which contains some IdentityFile lines to point to the key files that I use for some of my servers. e.g. IdentityFile ~/Data/Keys/KeyFile.pem ...
3
votes
1answer
93 views

ssh agent authorization in a detached screen session

I have an ssh script which use ssh key forwarding on a remote system to do thing in even more remote systems. I have to run the script in a screen session so that I can detach from it. But the ...
1
vote
1answer
205 views

Is there an `svn up` using `https+ssh://`?

I have an account on a Linux server. Long time ago, I've setup an SSH key for logging. It used to work, and it continues to work until now. Right now, after I login on the server with my SSH keys, I ...
0
votes
1answer
58 views

Gaining access to remote server over SSH from the same machine but with a different IP address

If a user can access a remote machine using SSH ok but then their static IP address changes and they find they can't access the machine, what's the problem? I don't want to destroy the user's current ...
2
votes
3answers
1k views

I created an RSA key but SSH keeps asking the password

On my Mac, I created an RSA key with ssh-keygen -t rsa and saved it as .ssh/authorized_keys on the target server (Ubuntu). I put this in server's /etc/ssh/sshd_config: PubkeyAuthentication yes ...
14
votes
1answer
3k views

What is the meaning of an equal sign = or == at the end of a SSH public key?

I just noticed that most of the ssh pubkeys in my authorized_keys end on == or = E.g. ssh-rsa ...
6
votes
1answer
2k views

Choosing the encryption algorithm used by OSX ssh-keygen

I have several users that use SmartCVS on OSX to interact with our CVS repository. We use the cvs :ext: (SSH2) method to access the repository, which is stored on a remote linux system. We use ssh key ...
0
votes
2answers
4k views

How to enable SSH key login on CentOS 5.5?

I'm trying to setup SSH login on a CentOS 5.5 on an OpenITC VPS. I should say this doesn't appear to have SELinux installed, as commands such as sestatus don't work. I currently have two users, root ...
4
votes
1answer
859 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
75 views

ssh from username1@client to host using username2@destination

Forgive the possibly simple question, but I cannot seem to find a good solution. A backup job needs to rsync files to a destination host, over ssh. The only login available to me is ...
1
vote
2answers
703 views

How do I setup seamless SSH access on centOS 5.7?

Well I haven't had to do this before until now, but I created an account on a remote server purely for shared git repo access and now need to setup seamless logins via ssh on each dev machine. I have ...
0
votes
1answer
270 views

SSH public key authentication without DNS entry

Server A thinks it is called foo.bar.com, but actually there's a problem (not in my control) with the DNS registration, so I connect to it at 192.168.1.1. I want to be able to scp from there to server ...
2
votes
2answers
452 views

Different ssh fingerprints on server. (MITM attack?)

When I try to ssh to my server in Germany from my UK laptop I get: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It ...
0
votes
1answer
461 views

Freebsd ssh key doesn't work

I have a problem with ssh key on freebsd vps. I generated a key and it works on debian. i usually just copy paste it to ~/.ssh/authorized_keys and it starting to work. In freebsd it doesn't. I tried ...
5
votes
4answers
738 views

Why VPN when I can just use SSH keys?

A friend of mine installed VPN on our LAMP development server. Previously, we just used SSH and sometimes SSH public keys to avoid password prompts. My question is, what is the advantage of using ...
6
votes
1answer
116 views

Determine when someone last logged in to a server from a key

I'm trying to track the last time a user logged into a Linux server with a certain key. So user secure has 5 keys in ~/.ssh/authorized_keys, how can I track when each key was used and what IP was used ...
1
vote
0answers
332 views

How do I import a RSA SSH key into GPG as the _primary_ private key?

I currently have a SSH key that I've used for a while and I'd like to start using GnuPG with a new keyring. However, given that I've used my key for ages, I would like to still use that key in GPG as ...
2
votes
2answers
107 views

Cannot SSH after resetting firewall on VPS

I'm having trouble trying to SSH to my Debian 5 VPS with blacknight. It was working fine until I did the following: Logged into 'Parallels Infrastructure Manager' -> Container -> Firewall -> Set to ...
1
vote
2answers
261 views

Public key authentication - SSH asks for passphrase after rebooting local machine?

I created a public/private key pair on a local machine using ssh-keygen. I entered a passphrase. I then used ssh-id-copy to put the public key on the remote machine. When I ssh into the remote ...
1
vote
1answer
56 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 ...
0
votes
1answer
489 views

Rsync without password and different port to rssh shell

i was trying to Rsync without password to rssh shell using ssh-keygen and ssh-copy-id -i /root/.ssh/id_rsa.pub '-p 12345 user@example' but i couldn't got the following message This account ...
0
votes
2answers
117 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 ...
1
vote
2answers
375 views

Known SSH server always ask my password on the first connection, following connections use key authenticating

When I try to connect to a certain server (present in ~/.ssh/known_hosts) where I copied my public key, it always asks my password. If I close the connection and try again it uses my key correctly. If ...
2
votes
1answer
345 views

Deploying git repo on production server without account password

What I would like to do How can I clone a git repository on my production server, without providing the account's password, and passphrase for the SSH key? Perhaps what I'm asking is not possible. ...
0
votes
1answer
851 views

Why would ssh-agent forwarding not work for particular users?

I'm having a ridiculous amount of difficulty getting SSH agent forwarding to work effectively for two users. Both can login to a remote servers without a problem, and it looks like their agents are ...
2
votes
1answer
719 views

Duplicity restore reports “Invalid SSH password” when I'm using a private key for connection

I'm testing the restoration of a backup with duplicity 0.6.15. I can login to my backup server just fine using ssh and sftp using the following commands and my private key: ...sftp root@client:~# ...
1
vote
5answers
322 views

SSH - using keys works, but not in a script

I'm kind of confused, I have set up public keys between two servers and it works great, sort of. It only works if I ssh manually from a terminal. When I put the ssh command into a python script, it ...
34
votes
9answers
8k views

Why is SSH password authentication a security risk?

Most guides for OpenSSH configuration advise to disable password authentication in favor of key-based authentication. But in my opinion password authentication has a significant advantage: an ability ...
-1
votes
3answers
148 views

sudo password with key authentication

I'm logging into my CentOS server using key authentication. I'm attempting to sudo a command but I don't know what the password is! How can I find this?
1
vote
2answers
505 views

System-wide authorized_keys

SSH auth by RSA-key: ~/.ssh/authorized_keys. Okay. Is there a way to set a system-wide authorized key so I can login to any account, including the newly created ones? The reason: i've got a server ...
8
votes
1answer
541 views

Allow password access for all users except root?

I want to leave the root user enabled on my servers for convenience, and the only reason people are against the idea (that I know of) is brute-force attacks on SSH. So, is there is a way in SSH to ...
1
vote
1answer
925 views

Issues with ssh-add

I am attempting to add an ssh key using ssh-add. Upon running ssh-add ~/.ssh/insertkeynamehere I am prompted with: Could not open a connection to your authentication agent. After doing some ...
0
votes
1answer
600 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 ...
10
votes
3answers
24k views

how do you create an ssh key for another user?

I'm trying to create an ssh key for another user. I'm logged in as root. Can I just edit the files generated by ssh-keygen and change root to the user I want?
0
votes
0answers
310 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 ...
1
vote
2answers
658 views

Connect SSH Bastion Server to DB Server

I want to connect to a Linux Database Server on a private subnet through a Linux SSH Bastion Server situated on a public subnet. I also want to create a tunnel to port 3306. When I attempt to create ...
2
votes
1answer
605 views

Can't seem to SSH into AWS EC2 instance, ssh permission denied error

I've launched a new EC2 instance with AWS using Amazon 64 bit linux (amzn-ami-2011.09.1.x86_64-ebs (ami-20506254)) and I'm having trouble ssh-ing into it. I've generated a public/private ssh keypair ...
3
votes
4answers
323 views

Copy directory using ssh tunnel

The following command is working as expected. ssh soak@10.10.10.11 "ssh soak@10.199.199.191 'cat test.txt'" > /home/shantanu/test.txt What I need to do is to copy the entire directory instead of ...
0
votes
3answers
862 views

ssh-agent forwarding Ubuntu 10.04.03 LTS

What started as an annoying issue a few weeks back, is now driving me mad! At home, I have a Ubuntu 10.04.03 box which acts as a fileserver. I backup things on it via rsync from other boxes, outside ...
2
votes
4answers
5k views

How do I configure sshd on Debian to use Public Key Authentication?

I'm working on a (Debian) Dreamhost VPS, and it seems to want password-based authentication only: adding my RSA and DSA public keys to ~/.ssh/authorized_keys did not change the behavior of requiring a ...
2
votes
1answer
90 views

Most secure way to issue commands on ubuntu cluster with sudo'ing user?

This is sort of a follow-up question to an unanswered question I have regarding administration of Cloudera cluster, but I figure generalizing the question to all of Ubuntu may help me get an answer. ...
1
vote
1answer
159 views

I'm not able to add passwordless entry to a new user on EC2

I'm trying to add a deploy user to a EC2 instance to work with capistrano. I've been able to add passwordless entry for user ubuntu, but it's not working with "deploy". I'm setting up this user as ...
6
votes
3answers
230 views

SSH Key authentication

I can't setup SSH key authentication to login without entering a password, and just using the private key. Here is the sshd_config file of my VPS. # What ports, IPs and protocols we listen for Port ...
5
votes
1answer
1k views

SSH Allow Password For One User, Rest Only Allow Public Keys

Is it possible with ssh to allow passwords from a certain user, but deny using passwords for everybody else? Basically I want to allow password auth for user justin but everybody else must use public ...
6
votes
3answers
3k views

Automating ssh-copy-id

I have some arbitrary number of servers with the same user/pass combination. I want to write a script (that I call once) so that ssh-copy-id user@myserver is called for each server. Since they ...
0
votes
1answer
331 views

Issue with executing commands with passwordless ssh

After placed public key at 171.201.231.20(windows machine with openssh installed)executed the command: ssh -vvv Administrator@171.201.231.20 ping -help from HP-UX machine it is not executing. Below is ...