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)

2
votes
6answers
12k views

Reputable web based ssh client? [closed]

I'm connected to a coffee shop's wireless network right now, and I suspected I'd be able to use my laptop and ssh somewhere. Unlucky me they seem to be blocking everything but web traffic (my testing ...
21
votes
7answers
9k views

Can't log in via SSH to any accounts set to use /bin/bash as a default shell

I'm trying to install bash as the default shell on a ARM Linux running on an embedded device (Synology DS212+ NAS). But there's something really wrong, and I can't figure out what it is. Symptoms: ...
0
votes
1answer
64 views

SSH “operation timed out” on ec2 instance

I have performed the following steps: Clicked on existing instance > Actions > Launch more like this Kept all the settings the exact same aside from selecting a different instance type (same key ...
2
votes
3answers
193 views

No shell and launch application on login

I am working on migrating an application from OpenVMS to RedHat Linux 6. The application is a green screen terminal application. The users will log into Linux via SSH and the application should ...
-3
votes
2answers
840 views

Get full physical Ram memory with bash

I know some of you might find my question stupid but i need to know how much ram is installed on a centos box Yes i know it can easily be done by using the command awk '/MemTotal/{print $2}' ...
-1
votes
2answers
68 views

How to record ssh session and email them periodically?

Is there anyway to record all remote SSH client's activity on a linux machine and email them on a periodic basis?
3
votes
3answers
32k views

SSH: Permission denied (publickey,gssapi-with-mic,password)

==================================================================== UPDATE: It turned out the configuration of sshd on host2 wont allow password login. Thanks to people answered this. Also don't ...
2
votes
1answer
5k views

How do you configure X11 forwarding over SSH on AIX?

Here is what I've tried. I've edited /etc/ssh/sshd_config on the remote AIX system X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yes as well as set $DISPLAY DISPLAY=localhost:10.0 export ...
4
votes
1answer
1k 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 ...
0
votes
0answers
12 views

RHEL 6.5 on VMWare workstation 11 - unable to connect via ssh [migrated]

I have installed a RHEL 6.5 (NIRMAN) on vmware workstation 11 and added two ethernet cards eth0 - has been bridged to direct physical network (192.168.1.71) eth1 - NAT eth0 is pinging well from my ...
0
votes
0answers
7 views

Passwordless ssh login on Mac OS without -i option [migrated]

I have a ssh key without a password to login to a remote system. Let's assume the remote server is called server-name and has the same user as the one I'm currently logged in. In the console if I do ...
0
votes
1answer
2k 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
1answer
60 views

SSH works only on the standard port

I can connect to my remote server only if I use the standard 22 port. When I change the Port (to 40004 for e.g.) in /etc/ssh/sshd_config I get an error: ssh: connect to host 123.45.67.890 port 40004: ...
1
vote
1answer
27 views

AWS Ubuntu 14 - Can't SSH After Reboot

Had an issue where an instance became unresponsive and was forced into a reboot. After the reboot I could ping the server but could not SSH into the server. Ultimately I created a new instance and ...
4
votes
2answers
8k views

Enable Password Login for SSH on Amazon Linux AMI

I wan't to be able to login via ssh with a password and not the key file. Yeah I know it's totally insecure but at this point in the config I was turning variables off and on left and right trying to ...
0
votes
1answer
12 views

screen -r and screen -list only show last screen

My problem is pretty much as the title describes it. I am running ssh session and on my server I screen for multitasking. My issue here is that I have at least 4 screens open and detached, but screen ...
3
votes
0answers
43 views

Is it possible to ssh or rsync into a system whose file-system has remounted itself read-only?

I need to login to a system that went into a read-only state. I can ping it just fine but I can't ssh in anymore. Is there some special command line flag/parameter I can pass ssh that lets me login ...
0
votes
0answers
9 views

connect server via ssh using ldap account anywhere

I'm new in using openldap I'm using centOS7 to be my openldap server my question is, can I login server via ssh using ldap account without any client settings? something like when I done setting ...
0
votes
0answers
15 views

SFTP chroot jail not working

Trying to follow this tutorial but for Arch Linux. /etc/ssh/sshd_config: # override default of no subsystems #Subsystem sftp /usr/lib/ssh/sftp-server Subsystem sftp internal-sftp ...
1
vote
0answers
10 views

Ubuntu 14.04 - rsync corrupting SSH configs/keys?

I have two Ubuntu 14.04 servers S1 (user root) and S2 (user dataman). S1 is responsible for handling file uploads and transferring backups to S2. On S1 I am using PubKey authentication to S2 for ...
1
vote
1answer
28 views

fail2ban says banned, but can still log in

Running fail2ban 0.8.14 on CentOS 6.5 with Python 2.6.6, fail2ban puts my IP in the banned list, but doesn't actually prevent me from logging in. Here's an example of a failed ban in ...
0
votes
0answers
19 views

Fabric: Using ssh_config settings on env.gateway

I have a relatively standard AWS setup, that looks like this: [ App server ] \ [ App server ] -- [ Dev gateway ] [ App server ] / Where the servers are only accessible over 22 from the gateway's ...
50
votes
5answers
6k views

I accidentaly forbid SSH connection to a remote server… What's next?

Let's say it again, we all make mistakes, and I have just made one. A brief history: I was doing some stuff on a VPS (Debian) I'm renting, when I noticed some strange behaviour. Using the netstat ...
0
votes
1answer
5 views

Using Unison / rsync over SSH to synchronize sites where full file system access is required yet root login is disabled

Assume two sites A and B with file server at either end. The contents of /storage should be synchronized between the sites, preserving ownership and permissions. There's no all encompassing group that ...
3
votes
2answers
365 views

How to make ssh fail if port forwarding fails

I have a bash script that runs ssh to create a port forward, using a command like this: ssh -N -i keyfile -L 1000:localhost:22 *remote_ip* There are occasions where the listen port may be busy, so ...
1
vote
1answer
921 views

Windows CA to issue certificate to authenticate SSH to a Linux server

I have a Windows Server Root Certificate Authority, Linux SSH server, and users with Windows SSH clients. The Linux box is not part of the AD domain (and probably never will be [sigh]) OpenSSH 5.4 ...
0
votes
2answers
3k views

EC2 instance always ask me to enter passphrase for the pem during connection

The pem file is generated by AWS console I was able to connect using the EC2 remote web interface, using the same pem file The permission of pem is 600 already Error.. ssh -i ~/test.pem -v ...
0
votes
0answers
8 views

ssh attack attempts on OS X 10.10 — should I worry/respond? [migrated]

If I turn on OS X "Remote Login" (i.e., ssh access), my console log gets regular messages like the following: 22/04/2015 13:05:23.364 sshd[2118]: error: PAM: authentication error for root from ...
0
votes
0answers
16 views

why does having ~/.ssh/id_rsa.pub cause GUI dialog asking for SSH password even though SSH_ASKPASS is empty?

How the problem started For some reason I did not have my id_rsa.pub file in ~/.ssh. So I copied it off one of my servers to ~/.ssh/ on my machine... so that I have it, so I can copy it to servers ...
-1
votes
0answers
29 views

ldapsearch is working but still unable to login user for ldap server from client [on hold]

I followed this procedure for ssh and ldap access for users to login to ubuntu machine. ldapsearch is working nicely but I am unable to login user. The following error message is coming. sshd[]: ...
23
votes
11answers
6k views

How to bring .vimrc around when I SSH?

My work tends to involves using SSH to connect to various machines, and then using vim to edit files on those machines. The problem is that I have to constantly copy my .vimrc file around. It's very ...
-1
votes
0answers
13 views

things to do to ensure that data is secured on my virtual server [closed]

I'm not much of an administrator but I'm maintaining a virtual server with Ubuntu OS where my website is hosted. I often connect to it using ssh, ftp and whatever the protocol MySQL uses. As my ...
13
votes
10answers
44k views

How to recover from “Too many Authentication Failures for user root”

I've done several attempts to establish SSH-connecton for user root@host using putty terminal. While doing so I specified wrong credentials several times and after that I've specified them correctly, ...
1
vote
2answers
1k views

Capturing output from a remotely executed command via SSH fails in CRON

This question is in a direct relation to this one: ssh fails to execute remote command when run from cron bash script - works from CLI I'm not able to comment on the accepted answer as I don't have ...
0
votes
2answers
1k views

Chef: Knife ssh connection error

I try to run a command on all my nodes but get the following error. The chef docs say it should work like this. me$ sudo knife ssh "name:*" "uptime" -x myuser WARNING: Failed to connect to -- ...
0
votes
1answer
21 views

ssh login hangs on “Last login”

I'm trying to login My CentOS server with ssh, but it hangs on "Last Login" for a long time then it return -bash: /usr/bin/id: Argument list too long -bash: [: : integer expression expected What ...
0
votes
1answer
27 views

Having trouble ssh into ec2 instance with elastic ip address

I have a new ubuntu EC2 micro instance in a VPN with what i think should be access from the outside world to ssh. $ ssh -i ./sendy.pem ubuntu@52.5.229.252 ssh: connect to host 52.5.229.252 port 22: ...
0
votes
0answers
29 views

Can't push git updates & run Unix commands when connecting via SSH [migrated]

I have installed java 8 on my bluehost VPS. I have followed http://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/ instructions . In order to add directories to PATH variable I have added ...
1
vote
2answers
1k views

Wiping out user and/or root password in embedded linux

We have a security camera system running an embedded linux. It boots with Lilo as a bootloader and has no tty access once booted. I don't know any username either. SSH/22 is open, but I don't think ...
4
votes
2answers
664 views

How to make ansible use password if key was rejected?

My new server instances are configured to login on root via ssh with password. I want my playbook to reconfigure it to use keys instead and disable root login with password on first run, so I need ...
7
votes
3answers
3k views

Use .bashrc without breaking sftp

My problem is that I need to set a few variables, and output a few lines every time I login to the ssh shell, and at the same time I have to be able to use sftp to tarnsfer files via Filezilla. Now, ...
3
votes
1answer
2k views

SSH - cannot start sftp-server when trying to force internal sftp

i'm having trouble forcing users to only be able to use sftp when connecting over ssh. I have the following lines in my /etc/ssh/sshd_config: Subsystem sftp /usr/libexec/openssh/sftp-server Match ...
0
votes
0answers
16 views

can't ssh on ubuntu, ec2 suddenly. stuck on “Sending env LANG = en_IN”

Suddenly I am not able to ssh (with pem file passwordless login & with password both) My pem file has not been changed, It was working fine till yesterday. Here is ssh -v output ...
0
votes
0answers
76 views

Ubuntu Server unresponsive after some days [closed]

Ahoy! I have an Ubuntu Server [Ubuntu 14.04.2 LTS (GNU/Linux 3.13.0-49-generic x86_64)] running on a Supermicro X10SBA board. System is installed on an encrypted LUKS partition and apt update ...
0
votes
1answer
145 views

PHP version conflict in Amazon Linux EC2 instance

I've lunched a fresh instance from the AWS -> EC2 console panel. After that when I logged into the instance via SSH and executed the following line: (note I executed first the sudo yum update before ...
0
votes
2answers
140 views

Need to send mail from our FQDN IP

I am trying to wrap my hear around how I am going to get around this latest hurdle. What needs to happen: PHP script sends email to our Exchange Server .... Sounds simple right? Well the issue is ...
6
votes
3answers
117 views

Copying over SSH via Putty tools is slower than via WinSCP

Uploading from my Windows PC (1) to my Ubuntu machine (2) in another city using PuTTY tools is slow. I tested this over OpenVPN tunnel and via port forwarding to (2). It turns out that using rsync ...
2
votes
1answer
12k views

how to use both AllowGroups and AllowUsers in sshd_config

I'm trying to modify /etc/ssh/sshd_config on my dedicated debian7 server with both AllowUsers and AllowGroups. However I can't seem get both to work together. The Setup a user testuser testuser ...
4
votes
3answers
3k views

Can't change assigned key pair on amazon ec2 instance

I can't seem to find the option to assign a newly created key pair to an amazon ec2 instance after deleting away the original key pair. I wanted to "deny" the first key pair from access to the ...
-1
votes
0answers
20 views

Add ssh keys in windows in batch script

Everytime I restart my pc, I have to add my 3 ssh keys again ssh-add ~/.ssh/ssh-key-name and I have to enter the password can I do this with a batch script to add them faster?