Tagged Questions

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

learn more… | top users | synonyms (2)

0
votes
2answers
404 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
41 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
65 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
135 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
48 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
157 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
77 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
38 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
62 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
79 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
34 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
37 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
155 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
31 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
40 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
139 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
88 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
86 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
78 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
206 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
109 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
286 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
57 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
159 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
99 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
525 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
150 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
93 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
54 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
368 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 ...
3
votes
1answer
25 views

Can you have known_hosts and authorized_keys shell out to a command

Can you make ssh and sshd, instead of checking the ~/.ssh/known_hosts and ~/.ssh/authorized_keys (respectively), invoke a command with the requested key as an argument, and accept the key only if the ...
0
votes
3answers
49 views

Changed SSH port but iptables refuse

I just changed my SSH port from the default 22. Now, I cannot access it anymore, my thought would be the firewall. I already added the new port to the iptables then do sudo iptables-save. However it ...
2
votes
2answers
45 views

Can't disable password prompt for ssh

I try to disable password login for a user using ssh. Here's my /etc/ssh/sshd_config file # Change to no to disable tunnelled clear text passwords PasswordAuthentication no # Change to yes to enable ...
0
votes
1answer
43 views

ssh tunnel through two-factor auth

I need to connect to server using SSH, and the server has two-factor authentication enabled and secretkey disabled. Now, I can connect "manually" form the shell with the help of Google authenticator ...
0
votes
1answer
85 views

EC2 firewall not allowing a certain ip address to SSH into any instances regardless of it being added to security group

My security group settings are accurate. I have tried adding the specific ip address that I am trying to connect from and also connections from all ip addresses (0.0.0.0/0), but my connection attempts ...
-7
votes
1answer
63 views

SSH login with no authentication [closed]

I have an account (root, if it makes a difference) set up without a password (passwd -d), which enables me to log in with no authentication through the console. SSH however insists on a password. How ...
0
votes
1answer
46 views

Server randomly receiving ctrl-c

I have CentOS-server on VirtualBox (Using Vagrant) which is running a very long php-script (It can take up to 5 weeks to fully complete) This script is runned over ssh using cygwin. The script is ...
0
votes
1answer
180 views

Redhat OpenShift - Connection refused fatal: The remote end hung up unexpectedly

I'm trying to start using Redhat OpenShift with a JBoss 7 Server Cartridge, but as I'm trying to do a git clone I get: $ git clone ...