The tag has no usage guidance.

learn more… | top users | synonyms (1)

0
votes
4answers
1k views

Permission denied when run script via ssh

I wrote script which download via scp and install some packages. SSH keys are added to host and when I run [root@HostB ~]# ./myscript everything is ok and packages are downloaded via scp without ...
1
vote
2answers
445 views

SSH key authentication works with /usr/sbin/ssh -d, does not with the daemon?

CentOS x64 6.5: if I connect as root to my server and do the following: service sshd stop /usr/sbin/ssh -d I'll able to connect as user using public key authentication from my development machine: ...
2
votes
1answer
221 views

gnome-keyring-daemon components and their use

When reading gnome-keyring-daemon manual, one can see pretty clearly that the --components option has four valid values: ssh, secrets, gpg, and pkcs11. However, I couldn’t find any detailed ...
1
vote
1answer
1k views

ssh secure shell: “connection closed by remote host”, not acquiring the key

I am very new to using this ssh secure shell to access a remote workstation. This is the third time I have received the message: Server responded "Connection closed by remote host". The ...
1
vote
1answer
1k views

Logging in through ssh tunnel with rsa key still giving password prompt

I have two laptops (Host A and Host C) with dynamic IP addresses and one desktop (Host B), all of which are running (Ubuntu) Linux. Right now I have things set up so I can access Host A from Host C as ...
1
vote
1answer
167 views

How does 'ssh-copy-id' work under the hood?

What does the program ssh-copy-id actually do under the hood? Can the steps be explained as if to a child with a good understanding of computer science? Does it use protocols already existing in the ...
1
vote
1answer
45 views

Remotely use SSH key authentication (3

I have a VM using ubuntu 14.04. running on a windows. If I use the terminal on the VM desktop, I can connect to my servers without passwords using registered SSH Keys. When I connect to the VM from ...
0
votes
1answer
599 views

Creating MySQL database and user without password

I am building a set of bash scripts which basically prepare apache virtual hosts, git repositories and other stuff on a cloud server. So far so good, everything is working, but a big problem occurred: ...
3
votes
0answers
43 views

How to pass private ssh key via string, not a file?

I have a text of a private key file. I want to connect via ssh to other node, yet the gateway I am in does not provide me with file system access. How to pass a text representation of key and not a ...
2
votes
0answers
624 views

Force OpenSSH / pam / pam_ldapd to do pam_ldapd(sshd:auth) with public-key authentication

I have working pam_ldap authentication using libpam_ldapd. I'm using slapo-nssov and want to use loginStatus attribute which is added to users ldap entry after opening pam session and deleted when its ...
2
votes
0answers
211 views

Restrict SSH access to git usage only

Using: ssh-keygen -O force-command="/bin/restricted-command", or command="/bin/restricted-command" at the beginning of an authorized_keys line one can force a key-based SSH connection to execute ...
1
vote
0answers
583 views

How to add PuTTY private key to OpenSSH client

I am trying to setup scp on a new Ubuntu 14.04 system. This system will act as an SSH client to an already configured SSH server on another Ubuntu 14.04 system. I can use putty to SSH into the ...
1
vote
0answers
50 views

Using x509 PKI with PGP

I'm building x509 PKI. And I want to apply CA's concept to my own private apt-get repository. I just found that apt-get repository (reprepro) use PGP certificate and some textbook said they can't use ...
0
votes
0answers
53 views

Why would my putty key be refused “server refused our key”, but works on next attempt?

I use PuTTY, and I use a key generated with PuTTYgen. My server is a VPS running Ubuntu 14.04 (perhaps this belongs on askubuntu, but I think it may not be Ubuntu specific). The public portion of the ...
0
votes
0answers
166 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 ...
0
votes
0answers
59 views

why is sTunnel failing to launch?

im a bit stuck and need help understanding what im being told as there is nothing in the log file, i get the following error when i try and run stunnel (servermode): sudo /etc/init.d/stunnel4 start &...
0
votes
0answers
58 views

How do i connect to a remote server using the ssh key of the remote server from my local

I have connected to a remote server from my local server by using the public key of my local system on the remote server. However, I have a situation where I will not know the remote server until the ...
0
votes
0answers
88 views

ssh with keys - want to use pam_tally2 - but cannot get it to work

I have configured pam_tally2 before on Centos 6 for users that use passwords for authentication. However, in this case I am only using keys to login (no passwords). It seems that pam_tally2 is not ...
0
votes
0answers
88 views

Added new user, but can't access account - public key encryption

I added a new user to one of our servers, but can't log in to it via putty. The error message is "Server refused our key", and from putty, "Disconnected: no supported authentication methods available (...
0
votes
0answers
165 views

ssh publickey authentication to a Ubuntu running inside VirtualBox

I have a Ubuntu running inside a VirtualBox inside my Windows 8 desktop. I am trying to communicate between the Ubuntu and another Debian server in the network. I have enabled Port Forwarding in ...