Secure Shell (SSH) is a protocol primarily for encrypted shell connections.

learn more… | top users | synonyms (2)

3
votes
1answer
172 views

How to remotely list a directory in the configured user's home directory

I notice that when doing one-liners via ssh into a Linux server, the value of ~ remains the value of the local user's home directory, not the remote user's home directory. Witness local user ...
0
votes
1answer
214 views

centos 6.5 ssh rsa key fails

Alright I have read many many articles and followed a few different tutorials and I can not get my RSA key to work on my centos servers. The servers are running centos 6.5 with FreePBX on them and I ...
0
votes
0answers
44 views

Don't allow password authentication via SSH

I'm working on a little project, and I found that a user can access my linux device using ssh if they have a valid username and password. It looks like such: import paramiko ssh = ...
0
votes
1answer
44 views

esxi 5.5.0 - what can make trusted keys file read-only?

I have an esxi host where I want to login via ssh. Unlike at the other esxi host I have, I can't edit /etc/ssh/keys-root/authorized_keys there: even though it has mode 644, it is not writable. I ...
1
vote
2answers
70 views

Closing the terminal with an open SSH session

I closed the terminal while still being logged in to a remote server during an SSH session (I didn't exit before closing the terminal). Could this damage the server? What consequences could there ...
3
votes
0answers
33 views

How to get OpenSSH to use OCSP for revocation

As the title says, is there any (free) library, patch, etc. that allows OpenSSH to be configured to check x.509 certificate revocation via OCSP (online certificate status protocol)? If so, can you ...
0
votes
1answer
68 views

How to properly remove an old ssh key [duplicate]

I have a script that dynamically creates Amazon EC2 instances and adds their ssh key to my ~/.ssh/known_hosts. However, whenever I need to refresh the instance by terminating and recreating it, I get ...
0
votes
0answers
48 views

Connectivity issues (slow response) to a remote VM via SSH

I am on a linux machine trying to Ssh into a remote Centos 6.4 server via VPN. The server often gets disconnected and response too is slow. I see the messages on the terminal once in a while: ...
0
votes
2answers
479 views

Permission denied (public key) ssh ec2 instance mac [closed]

Update2: $ ls -ld ~/.ssh drwx------ 8 user staff 272 2 Oct 17:51 /Users/user/.ssh $ ls -la ~/.ssh/config/file.pem -r--------@ 1 user staff 1692 2 Oct 17:11 /Users/user/.ssh/config/file.pem $ ls ...
0
votes
1answer
42 views

How to access unreachable AWS instance?

I have an AWS instance that suddenly I've lost access both by SSH and to the web server there. I used to access by a public Elastic IP (54.76.201.91), so I know for sure that Security Groups are ok. ...
1
vote
2answers
66 views

Recover sudo password of server over ssh

I am working on an ubuntu 12.04 server and i was not provided a sudo password. Now i need to recover it. I found out that we need to reboot into recovery mode to do so but we don't know how to get ...
0
votes
1answer
150 views

Centos : su: incorrect password after bash update

A few days ago I've updated the bash to patch it agains Shellshock and since then I cannot su - root from my regular 'wheelgroupuser' account on Centos 6.5 with WHM. I'm constantly getting su: ...
0
votes
1answer
49 views

SSH Passphrase for ppk file

I'm trying to connect to EC2 server, using .ppk file ssh -i key.ppk -l root@dns-name The issue is that, the shell asks for passphrase ? i don't know what is it! Am able to use this key using ...
0
votes
1answer
234 views

Unable to ssh EC2 using password - “Disconnected: No supported authentication methods available (server sent: publickey)”

I have followed the following steps https://coderwall.com/p/j5nk9w This is what I did 1) $ sudo useradd -s /bin/bash -m -d /home/newuser -g root newuser Entered the Password for the newuser 2)$ ...
0
votes
2answers
82 views

How can I use SSH to run Cisco IOS commands in Global config mode?

I know about Kron, but there is supposedly no way to run global config commands: http://www.techrepublic.com/article/schedule-commands-with-cisco-ios-kron/ If I connect using Putty, Putty is able to ...
0
votes
1answer
39 views

Disconnect SSH sessions from user side IBM 4690

I need SSH session to be disconnected after 45 sec inactivity. on IBM 4690 SSH server settings are: TCPKeepAlive no ClientAliveCountMax 3 ClientAliveInterval 15 But when I do packet capture ...
0
votes
0answers
64 views

“Lock” a certain user to a certain user in SSH (Cygwin)?

I need to give access to a remote user via SSH (Cygwin) in a Windows 2008 R2 box, but the user must see only his /home folder, and cannot read, write or list contents from another folder. The user ...
0
votes
2answers
83 views

Automate ssh serial-over-LAN connection to SuperMicro IPMI via Putty

I recently found instructions on how to take advantage of the SuperMicro's serial-over-LAN remote console via SSH. The challenge is after the SSH login a few commands must be executed to start the ...
0
votes
1answer
35 views

ssh not resolving updated CNAMES

I have an alias for SSHing in to a specific machine. The alias uses a hostname like so: ssh user@example.com Example.com is a CNAME. For some reason, I can dig the hostname after I change the ...
-1
votes
1answer
41 views

how to ssh into a vagrant box when working with multi-vagrant environments?

I have two vagrant boxes (wordpress VVV and laravel homestead) running at the moment at the same time. I always ssh to the machine with putty 127.0.1.1:2222 if I run vagrant homestead first I can only ...
-1
votes
2answers
49 views

Is there a simple way to automatically send through scp any file modified in a folder to a remote folder? (one-way synchronization) [closed]

Put it simply: I have a folder full of files and subfolders with more files. I would like to have a mirror of that folder in a remote server so anytime a file is modified on my machine it gets ...
0
votes
0answers
10 views

Cannot add ssh keys in cloudstack

I used this guide for use ssh keys in cloudstack. https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Installation_Guide/using-sshkeys.html I'm using a debian instance. Once I run ...
1
vote
2answers
180 views

How to log ssh client connection/command?

I would like to know how i could log SSH command lines a user is using on a server. For exemple, if the user Alex on my server is doing the following set of commands : $ cd /tmp $ touch myfile $ ssh ...
0
votes
1answer
32 views

How to forward SSH agent connection to unqualified hostnames by default?

I have a number of local domains in my resolv.conf search order. I would very much like to forward SSH agent by default when I connect to an unqualified (without DNS suffix) hostname. The best I've ...
0
votes
1answer
37 views

how to access a private host through a public one

I have a number of AWS EC2 instances, one of them has a public IP address, the rest do not have public IP addresses. I have set up SSH access to the public machine using a private/public key pair. I ...
1
vote
0answers
30 views

Centralize way to prevent interactive logins

I have an Ubuntu server that is used for two primary purposes for my students: To hold on to files that students need to temporarily upload for my assessment (ie: I give them an input image, and ...
0
votes
2answers
41 views

Is there a parallel SSH client with grid output similar to multitail [closed]

I've used multitail to monitor multiple log files on a single machine and displaying them in a "grid view" (2x3 or something similar). I was wondering if there is any such tool for SSH? Anything that ...
3
votes
3answers
141 views

How can I connect to multiple servers efficiently with ssh using Linux

We run a VSphere at the office, meaning I am using a lot of different ssh connections to systems. I really like Mputty and MobaXterm on Windows, because they save and remember how I connected to my ...
0
votes
1answer
97 views

Ubuntu 12.04 VPS SSH not running, how to reset SSH configuration files?

Yesterday after I re - enabled root user and rebooted the VPS, now SSH and SFTP are not running. FTP working. I can only connect this VPS via VPS provider web based console. When I run "ssh ...
0
votes
1answer
40 views

How to distribute root files with expect?

I've recently learned how great expect is, now that I'm suddenly responsible for managing 150 VMs. I've been using it to distribute config files to remote servers, but there's got to be a better way ...
0
votes
1answer
89 views

ssh tunneling not working due to strict iptables

my iptables are set so that I can only allow ssh connections. I tried ssh tunneling and I can connect to my sever, but after when I try using my server as a proxy on firefox, pages try to load ...
0
votes
1answer
81 views

Unable to redirect STDOUT in a remote screen session via SSH

I would like to execute a long-running command via SSH/screen and have the output redirected to a file. I'm able to run the command fine (similar to this question), but the output never shows up. ...
0
votes
0answers
27 views

How to forward a host alias in to an ssh session

We have a lot of hosts with rather cryptic names, and to make life easier for us we have alias for them, So we can for example do "ssh mon1" and end up on "gen3-r720-mon-14ef". However, when we do ...
1
vote
1answer
232 views

Ansible stuck on gathering facts

I'm having some odd issues with my ansible box(vagrant). Everything worked yesterday and my playbook worked fine. Today, ansible hangs on "gathering facts"? Here is the verbose output: ...
0
votes
0answers
32 views

EC2 Create new Linux user(s) with their OWN Key Pairs?

In EC2, i spinned a CentOS v6.5 instance, and i got a Key Pair as well (of course). But the problem is, i hoped it would be like as usual before that it would creates the ec2-user user, so that i can ...
0
votes
3answers
110 views

PubKey Authentication not Working

I tried setting up PubKey authentication between my Mac and CentOS dedi server, but something is up... Here's the steps I took: ssh-keygen -t rsa Then chmod 700 .ssh/ && chmod 600 ...
0
votes
2answers
62 views

Ignore or replace host key if it differs

Quite often i put servers into a rescue mode and that obviously changes the host key. So there are situations when i know that SSH host key will be changed temporarily or permanently. And each time i ...
1
vote
1answer
315 views

Trying to get SSH with public key (no password) + google authenticator working on Ubuntu 14.04.1

I'm using Ubuntu 14.04.1 (with OpenSSH 6.6 and libpam-google-authenticator 20130529-2). I'm trying to set up SSH logins where the public key authenticates (without a password) and a user is prompted ...
0
votes
0answers
13 views

How to lock pageant the same way ssh-add -x does?

Now that i understand how to highjack SSH_AGENT_SOCK & how to use it, it scares me that a fellow coworker, by having root access on any of my company server, might access to my personnal NAS. I ...
0
votes
1answer
63 views

OS X enable scp but disable ssh login

How can I disable login for a user on OS X but still allow them to scp files to/from that machine? I've come across a shell replacement "scponly" but that doesn't compile for OS X (and is really ...
0
votes
1answer
20 views

Trouble using ssh-key gen specifying location and password

This is my code: ssh-keygen -t rsa -C "$APP" This works perfectly. However it then asks me to specify location and password. I was hoping I can automate this all in one go, however this command ...
0
votes
0answers
25 views

last command does not show logins with public key. Is it normal?

I just finished to set up 2 Debian servers to make backups using rsync and public key authentication. Everything works fine but... For some reason last command on the source server does not show any ...
1
vote
2answers
179 views

reverse ssh tunnel over stunnel (or just reverse back down the stunnel connection)

I'm creating a security "dropbox" that can be deployed behind nat or any firewall, call out to a controlled publicly accessible server and then initiate control from the server. I know this is easily ...
1
vote
2answers
102 views

How to automate GPG file decryption over SSH?

I would like to use GnuPG to decrypt short messages that are stored on a remote host (running Linux), i.e.: ssh [<user>@]<host> gpg -d <file-to-decrypt> interact with gpg-agent ...
2
votes
0answers
542 views

SSH_ORIGINAL_COMMAND variable not getting set

I am working with two servers, both of which run FreeBSD 8.4-RELEASE-p1 and OpenSSH_6.1p1. Both servers' ssh_config files, located in /etc/ssh, are identical. Both servers are configured to allow ...
0
votes
0answers
163 views

Zabbix 2.2 SSH/FTP performance monitoring

I have a few systems I need to monitor which are out of my control. Ideally I needed a simple ping RTT test to see the status of the link. These systems do not respond to my ping requests so I need to ...
0
votes
0answers
35 views

Intermittent network failures, limited to certain client subnets

We've been seeing intermittent network failures. The failure mode tends to be that long running connections tend to drop out. We see it most with ssh and samba connections, although some occasional ...
1
vote
2answers
98 views

How set to ansible a default user/pass pair to ssh connection

I am using ansible and I have it configuration in my inventory/all: [master] 192.168.1.10 ansible_connection=ssh ansible_ssh_user=vagrant ansible_ssh_pass=vagrant [slave] 192.168.1.11 ...
0
votes
1answer
55 views

ssh multiplexing via port forwarding

I'm trying to create a setup where one could "ssh" to a specific port on localhost and then get forwarded to a remote server and into a shell, without the need to enter credentials (nope, secret key ...
0
votes
0answers
399 views

ssh_exchange_identification: read: Operation timed out

I am trying to connect to my server (Synology DS212) using ssh xxx@yyy -p 22222 -vvv but I can't and I obtain the following error: OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 debug1: Reading ...