Secure Shell (SSH) is a protocol primarily for encrypted shell connections. This tag is also used for questions about sshd and openssh, the two standard applications for using SSH.

learn more… | top users | synonyms (2)

-1
votes
0answers
40 views

PHP not loading ssh2 extension after successful installation

I was getting this error, when running my PHP script to download files using SFTP: PHP Fatal error: Call to undefined function ssh2_connect() I installed the ssh2 PECL extension by running the ...
0
votes
0answers
4 views

How can a command in a pipe read from a keyboard? [migrated]

I randomly tried to execute the following command in bash1 cat /some/file | ssh user@machine 'cat >/destination/file There are no keys installed on the remote machine, so the only way to ...
0
votes
0answers
26 views

Forward ssh connections to docker container by hostname

I have gotten into a very specific situation and although there are other ways to do this, I've kinda gotten obsessed with this and would like to find out a way to do it exactly like this: Background ...
1
vote
0answers
56 views

SSH `-b` option in PuTTY/KiTTY

The openSSH SSH client has the -b option to bind to a specific address: -b bind_address Use bind_address on the local machine as the source address of the connection. Only useful on systems with more ...
0
votes
0answers
15 views

Apt-Dater: sorry, you must have a tty to run sudo

Unfortunately I can not connect to a host using apt-dater. The error is: Pseudo-terminal will not be allocated because stdin is not a terminal. ADPROTO: 0.7 LSBREL: CentOS|7.2.1511|Core VIRT: ...
1
vote
0answers
21 views

Command after apt-get install is not executing in script

I'm writing a script which is meant to initially set up my Droplet. In the script, I'm opening ssh connection with my Ubuntu 14.04 server as follows (with USER and REMOTE variables previously ...
0
votes
1answer
23 views

SSH connect to FreeBSD9 suddenly started to freeze randomly

I have a KVM FreeBSD 9.2 box for a long time. 5 days ago I had a 2h ssh incoming session on this box with no freezes. No system/soft updates or significant system changes were made. Today I can't ...
0
votes
0answers
14 views

SSH not logging failed key authenticated logins from valid users [duplicate]

For some reason OpenSSH is not logging the failed logins in /var/log/btmp (lastb) of valid users when I am authenticating with an SSH Key. On the other hand It logs failed and successfull logins from ...
0
votes
0answers
15 views

ssh: clicking enter once results in enter twice

I'm running into a strange issue accessing a server via SSH using Putty: whenever I click "Enter" it acts like I clicked it twice. It's very consistent -- definitely not a keyboard issue -- and only ...
-1
votes
1answer
31 views

Unable to use SFTP via FileZilla?

I created a Linux VM on Microsoft Azure via this blog Creating secure Linux VMs in Azure with SSH key pairs In summary it simply says: openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ...
-2
votes
0answers
36 views

does 22 port should open in firewall when internal user want to use services on 22 port

user in internal network want to communicate outside via 22 port to access a particular URL. do i need to open 22 port in firewall? is there any solution to fix this issue with altering security ...
0
votes
1answer
14 views

Cannot login to ssh - stdin: is not a tty

FIXED If you have seen this in the login screen of your server... stdin: is not a tty ...you know the trouble. Well. I've had the exact same problem on my root server. I tried several things to ...
0
votes
0answers
17 views

“-bash: fork: retry: …” on SSH connection

When I'm connecting via ssh to my useraccount of my server, I'm getting the following error: -bash: fork: retry: No child processes -bash: fork: Resource temporarily unavailable Does anyone ...
0
votes
0answers
26 views

vpn-over-ssh ipv6 tunnel getting permission denied connecting to tcp

Using my script, I can establish a working vpn for ipv4 and even able to ping ipv6 addresses. However, trying to connect to an ipv6 address I get "permission denied". ➜ ping -6 ipv6.google.com -c1 ...
1
vote
1answer
34 views

How to create chroot'ed SFTP access on an Archlinux Server?

I've followed this instructions on the ArchWiki and GeekStuff to setup an user which can only access the server via SFTP (SSH) but without Shell (/bin/false) in a chrooted environment of his home dir. ...
-7
votes
1answer
63 views

We want capture all login user activity and keystroke [closed]

We use CentOS 6/7 we have use script which user are stop that process. So we don't get to see any log from such users. We want capture following: Timestamp when the user logs in to the OS Timestamp ...
1
vote
1answer
17 views

how to restrict ssh-agent to trusted applications only?

Is there a way to prevent an application from using my ssh-agent keys? I started using an application that uses ssh to access my remote server (possibly for a legitimate reason, according to the ...
-2
votes
1answer
19 views

How to keep authorized_keys in a custom folder

I would like to keep authorized_keys of OpenSSH for Windows in a custom folder and not in a C:\Users\SomeUserName folder. Is it possible? The manual page does not help ...
0
votes
0answers
15 views

CentOS 7 Firewalld crashing server when trying to allow port for mail server

So I'm working on setting up a mail server on a CentOS 7. I'm following this tutorial: http://www.krizna.com/centos/setup-mail-server-centos-7/#install When I reach step 10 at adding firewall rules ...
-1
votes
0answers
18 views

Cannot ssh from host to guest os in Virtual Box [migrated]

I have a windows machine with virtual box installed. I have ubuntu VM within the virtual box. If I setup my vm's network to use NAT, and setup port forwarding to forward from my localhost to the ...
0
votes
2answers
28 views

SSH Tunnel to Memcached not working

I have created a SSH Tunnel to my memcached server as follows: ssh -f -N user@56.55.55.56 -L 11211:127.0.0.1:11211 When i do netstat on my machine i get the following: So far looks good. tcp ...
-2
votes
0answers
27 views

Google Cloud - Can't Connect via SSH

So all of a sudden my instance on google cloud can't connect via SSH. I checked the serial console and this seems to be what i get: Apr 3 06:00:37 instance-3 google: No startup script found in ...
0
votes
1answer
46 views

Ubuntu OS recovery – accidentally deleted ld-linux-x86-64.so.2 from /lib64 folder in Ubuntu 14.04

I was remotely working on the machine with SSH but after deleting the ld-linux-x86-64.so.2 file by mistake I closed the ssh session and now I cannot login because it gives me following error: Welcome ...
-1
votes
1answer
66 views

Setting up SSH with the correct user rights [closed]

I want to setup my SSH connection correctly. As many tutorials told me, it is not recommended to use the root account of Ubuntu server. So I would rather use my standard account "Simon" to upload ...
0
votes
2answers
55 views

Is there a way to unbreak this egg?

We need to recover from overwriting the authorized_keys files on a set of servers. Remote, embedded Linux devices were configured to ssh into Ubuntu 14.04 servers autonomously. We do not have record ...
0
votes
0answers
25 views

SSH unavailable system booting

I got a weird problem with a server from a hosting company. Sadly they don't give you IPMI/KVM access so all I got is the option to reinstall or boot up the server with their recovery image. I'm ...
-1
votes
0answers
30 views

Why can I connect with su but can't connect from login prompt?

I am on a system where we have a captive application account set up. Let's call it "myapp". Things seem to be set up so that if I log in to my own personal account (call it "jdoe"), I am able to ...
0
votes
1answer
31 views

How to configure TightVNC to accept connections from localhost only

I just implemented tunneling TightVNC + OpenSSH for MS Windows successfully. The last thing I have to configure is to deny any remote connections to TightVNC Server and allow local connections ...
1
vote
1answer
78 views

Connection SSH port 22 via domain name but not public ip address

I have a Draytek router configured to port forward SSH connections to an internal server from specific ip addresses only. Clients and myself can connect externally successfully except one who cannot ...
0
votes
0answers
19 views

SSH to OpenVPN Connected System AND Tunnel through VPN

I want to SSH to a Docker system running Debian (latest), with OpenSSH, and OpenVPN installed. I also want to create a Dynamic forward (SOCKS proxy), and I want it route through the VPN connection as ...
-9
votes
1answer
47 views

I have to wait several minutes to ssh my server after reboot [closed]

I have to wait at least 5 minutes after the server "finished" its reboot to ssh it, otherwise i get "connection refused". It's an armv7 processor with Archlinux. What can be the culprit?
1
vote
0answers
32 views

How to enable ssh on startup in opensuse

My experience with Linux is limited and as part of a project, I ordered a Linux dedicated server. This is an unmanaged server with OpenSuSE 13.2. When I try to ssh into the server, I get a connection ...
0
votes
0answers
51 views

remote execution of commands using sudo /usr/bin/ssh

I have the following sudoers file in /etc/sudoers.d: Cmnd_Alias GETCONFIGFILES = /usr/bin/ssh servername.mydomain.com -p 1022 'cat /path/textfile.txt' User_Alias TOMCATUSER1 = localuser TOMCATUSER1 ...
0
votes
1answer
239 views

Ansible ping fails - host unreachable

I just started learning the basics of Ansible, and looked up why I am getting the above error but can't figure out how to sort it out. This is the trace: Me-Air:ansible me$ ansible all -m ping -vvv ...
0
votes
1answer
21 views

Can I restrict openssh to only allow public keys with pass phrases [duplicate]

Is it possible to configure ssh using PubkeyAuthentication yes but only allowing pub/private key pairs with a passphrases?
3
votes
1answer
94 views

ssh_dispatch_run_fatal: Connection to x.x.x.x port 22: key type does not match

I'm running into a bizarre error with SSH to a Sonicwall device which I'm unable to resolve. The issue only seem to occur on OS X (10.11)'s built in SSH. I can successfully ssh to the firewall from ...
0
votes
1answer
27 views

Reverse ssh for location distributed system behind firewall

We have multiple machines located in different area behind firewall which don't have Static IP and can't be accessible from the outside. We would like to access those machines but are wondering what ...
1
vote
1answer
40 views

Why won't my SSH keys forward properly?

I'm trying to ssh from my machine to another machine and from there to a third machine. When I do it manually, it works like this: localhost$ scp ~/.ssh/id_rsa myuser@myhost.something.something.com:. ...
7
votes
2answers
70 views

Same RSA key on multiple PCs

Can I use my RSA private key on multiple computers i.e. my desktop and laptop. Or do I have to create a unique key for each computer I own, and add their respective public keys to necessary ...
1
vote
1answer
40 views

How can I get Azure to use an SSH key when doing a node.js deploy via git?

I'm deploying a node.js app to Azure Web Services using git from my local machine via: git push azure master One of our npm packages is a private repo hosted on BitBucket. Without Azure having an SSH ...
0
votes
0answers
35 views

RDP over SSH for Windows 8/10 to use Jump Host

is anybody aware of a way to tunnel the Windows RDP client over SSH on Windows 8/10 to access the servers in the separate network? The scenario mostly is: SSH -> SSH gateway Jump Host -> Hosting ...
-1
votes
1answer
44 views

Grant SFTP permission and limit Ubuntu user to only one directory [duplicate]

I'm trying to let create a user with SFTP permissions to only one directory (that is not his home directory). When he connects through a SFTP client I want him to land on this directory and I don't ...
1
vote
3answers
79 views

Converting SSH command to a PuTTY command

I am trying to translate the SSH command: ssh -N -L 1521:server1.com:1521 username@server2.com into PuTTY. -N: Do not execute a remote command. This is useful for just forwarding ports (protocol ...
1
vote
1answer
62 views

SSH fails on CoreOS when substituting etcd cloud-config variables

I have a minimal cloud-config that works without problems on DigitalOcean. I added some hardening for SSH, which requires restarting sshd.socket to become effective: units: - name: sshd.socket ...
0
votes
0answers
32 views

ssh ForwardAgent, “Could not open a connection to your authentication agent.”

I have ForwardAgent yes for a few hosts. One of them started failing recently and I can't find the reason. when I ssh to all hosts and execute ssh-add -l i can see one key just fine. If i ssh to ...
1
vote
1answer
58 views

Iptables : forwarding SSH traffic according destination IP

I have 2 servers : One that receives connections from outside my LAN and another (inside the LAN) that I aim to access from outside via ssh. There are prerequisites : I can't access to my SSH services ...
3
votes
3answers
129 views

Is it possible to login onto a remote machine with a misconfigured sshd configuration file?

So basically I was stupid enough to write possibly incorrect options on my sshd configuration file. Instead of restarting the service and check whether the new configuration works, I rebooted the ...
0
votes
0answers
42 views

LDAP user authentication access denied

Currently, I am configuring LDAP client for user authentication on the server. Only SSH key authentication is allowed (Password authentication is not allowed). My SSH configurtion ...
0
votes
0answers
26 views

Copy .pub keys to Gitolite Server, university environment

I am a new Technical Officer for a South African university, and being a bit green, I'm not sure if this is the perfect place for this. Please let me know if it is not. The problem I have a Gitolite ...
1
vote
0answers
54 views

Warning: Remote host identification has changed (SSH)

Most likely someone did a server update last night, because when I try to do a rsync (from win 7) I get the message (short version): WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! It is possible ...