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)

0
votes
1answer
46 views

CentOS How to upgrade openssh to 6.9

I have to upgrade openssh. I follow this page just instead the rpm 6.7 to 6.9 But When I run rpm -Uvh /root/rpmbuild/RPMS/x86_64/*.rpm I had problem : error: Failed dependencies: openssh ...
0
votes
2answers
4k views

How can i forward the http and ssh port to my internal server using iptables

I do not have the router so i make the Linux system into router having centos 6.4 for forwarding the Public network traffic to my local LAN.It has the two NIC card. one for public ip (eth1) and ...
3
votes
3answers
11k views

Can't login to Cygwin sshd server with a non-administrator user account

I'm having some difficulties logging in to my Windows 2008 server (a DC) running Cygwin sshd. I can log in fine with an account that is a member of the Domain Admins group, but when I try with a ...
2
votes
4answers
16k views

SSH fails: PTY allocation request failed on channel 0

So I googled the error and checked serverfault, but the solutions didn't fit. Most results were problems with /dev/pts, but that is mounted. Other results are errors with git, but there is no git on ...
0
votes
1answer
17 views

sftp server chroot initial directory

I have configured an sftp server with chroot and it works fine, the only thing that is bothering me is the initial landing directory, since the sftp user does not have write permissions in the landing ...
4
votes
1answer
34 views

SSH connection refused/error message

I have a systems which has multiple users but only few selected users are allowed to login to the system at a given time through SSH (or otherwise). I am using "passwd -l/-u" command to lock and ...
2
votes
3answers
83 views

word wrap in ssh session not working with grep

When I ssh to my Linux servers and use grep like this: grep 'timeout exceeded' logfile | less word wrap does not work. However, if I use the same command but use less first, like this: less ...
71
votes
6answers
76k views

Can I automatically add a new host to known_hosts?

Here's my situation; I'm setting up a test harness that will, from a central client, launch a number of virtual machine instances and then execute commands on them via SSH. The virtual machines will ...
2
votes
0answers
28 views

Openshift SSH permission denied through corporate proxy

am trying to connect local->cntlm->company proxy->rhcloud host. I have the keys uploaded to rhcloud and GitHub. With the current configuration with corkscrew i am able to connect to git via ssh. ...
0
votes
0answers
15 views

Git bash not recognizing anything config file parameters [migrated]

I have a hosting plan from the folks at HostGator. They allow SHH connections on port 2222. I'm using "Git Bash" on Windows to connect to HostGator via SSH. Works fine with this ssh -p 2222 ...
0
votes
0answers
16 views

Issue connecting with ssh into ubuntu server

We have a number of devices that use rsync to sync up files to the server. The rsync in turn uses ssh to make the connection. Since this morning the ssh connections through this channel are not ...
6
votes
1answer
62 views

Forward SFTP user to chroot subdirectory after authentication

I've set up a SFTP server using OpenSSH, everything works fine and the users I created can connect. After authentication, the users find themselves directly inside /chroot, a directory they are not ...
2
votes
1answer
7k 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 ...
-1
votes
0answers
33 views

I can only access my wordpress site using IP address but not with domain

I uploaded a fresh copy of the latest wordpress 4.2.3 and uploaded it to a domain folder in /home/abc.com/public_html/ using Kloxo-MR file manager. After setting up the wp-config file and setting up ...
1
vote
1answer
28 views

OpenSSH server frozen, can't unfreeze using Escape Char in OpenSSH client

Connecting to Ubuntu Server 14.04.2 from a OpenSSH client in Xubuntu 15.04 I can't unfreeze the session which has timed out, I have tried the ~. escape character but the terminal won't even let me ...
0
votes
2answers
36 views

ssh user@localhost vs user@servername

I am working with 2 servers (Redhat enterprise 7). When i ssh both of them. One is showing user@localhost where the other is showing user@servername. I would expect to have both like user@servername ...
1
vote
1answer
1k 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 ...
26
votes
15answers
22k views

Login without running bash_profile or bashrc

So let's say one typoed something in their .bashrc that prevents him (or her) from logging in via ssh (i.e. the ssh login exits because of the error in the file). Is there any way that person could ...
-2
votes
0answers
12 views

Strange issue with Mac OS X Server and Apache with SSH [on hold]

I'm having a strange issue with my Mac mini server running Mac OS X 10.10.3 This box runs Apache HTTP 2.4, and runs several vhosts off of that. The issue I'm having after a recent update is that ...
0
votes
0answers
23 views

I accidentally installed whereami on my EC2 instance (ubuntu) now I can't ssh into machine

I misunderstood what this command does I believe. I thought it just told you the hostname, but apparently it tries to make changes to your networking configuration as well. Is there anything I can do ...
0
votes
0answers
19 views

Having trouble to connect sshd on CoreOS sometimes

I have 12 node of bare-metal CoreOS cluster (on SuperMicro Blade). Every nodes was installed with same image and cloud-config. (Stable 717.3.0) The problem is that I fail to connect sshd frequently, ...
0
votes
1answer
22 views

SSH user minimum permissions

I am working on an application which sshes into servers and gathers information about the server such as disk and memory usage. Another task it needs to do is get file size information of certain ...
0
votes
3answers
444 views

How to reset root password on a Linux VM on Windows Azure?

I have a Linux VM running for over a year on Azure. I have forgotten the password to my account. I am however still able to ssh into the vm as it has my ssh key. Note that the root account does not ...
0
votes
0answers
37 views

How to evaluate security risks of a git server installation

I need to evaluate the security risks of code being hosted on a virtual machine in a git repository. Its an area relatively new to me as a programmer. I want to setup the git repos, but I have to ...
0
votes
1answer
29 views

openssl on Ubuntu - no zlib

on my Debian machines when I enter openssl -V I see the zlib algorithm. On Ubuntu I do not have zlib support for openssl, so the SSH also not support zlib. Why is this? I tried several thing to get ...
0
votes
0answers
12 views

ssh: connect mysql and filezilla [closed]

I have an Ubuntu Server v14 running and want to connect with the following over SSH: MySQL Workbench FileZilla Both programs keep giving errors that they can't get a connection. Connecting via the ...
5
votes
3answers
4k views

ssh uses wrong home directory in Cygwin

$ ssh usaname@login.somehost.no Could not create directory'/cygdrive/c/Documents and Settings/vidar kongsli/.ssh'. The authenticity of host 'login.somehost.no (...)' can't be established. RSA key ...
0
votes
0answers
9 views

Unable to perform operations on files due to special characters / character encoding via SSH

Today I had a backup of my files restored onto a server which I am connecting to via SSH. It appears that some of the file names with Japanese characters were messed up and I am unable to perform any ...
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 -- ...
1
vote
3answers
238 views

Username based SSH proxy

I'm trying to mux between two ssh servers based on incoming username i.e. ssh user1@testserver will go to one sshd instance and user2@testserver goes to another. Can this be done?
8
votes
3answers
17k views

How to setup ssh tunnel to forward ssh?

I have computer with Ubuntu behind router that I can't configure. However I want to have ssh access to that computer. I think it is possible with ssh tunneling, but I don't know how to do it. I have ...
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 ...
1
vote
2answers
242 views

Copying data between AWS EC2 machines

There are times where, in order to do some debugging or perhaps a manual migration, I need to copy large chunks of data from one EC2 instance to another. When the size of the data is tiny, it's simple ...
1
vote
2answers
2k views

SSH connection times out

Given: vm - a WinXPsp3 virtual machine hosted by a Win7sp1 physical machine alice is the user on vm srv - a Win2008R2sp1 server bob is the user on srv quake - a linux server mark is the user on ...
1
vote
1answer
1k views

How to use an SSH Gateway with Chef's Knife Bootstrap

I'm just getting started with Chef and have a few nodes in a private network that I need to first ssh into a gateway node to gain access to. For the moment i'm using purely password based ...
0
votes
0answers
17 views

Why am I able to SSH locally and start Windows services, but unable to do the same remotely?

I have a Windows Server 2008 R2 virtual machine that is running Cygwin and SSH. I'm able to SSH using my id_dsa key by issuing command ssh svc@IP "hostname;whoami", which returns what I would expect. ...
1
vote
1answer
32 views

Host keeps asking for password when using SSH Keys with PuTTY for Windows

I'm using PuTTY for Windows to connect to dreamcompute-VPS(dreamhost). At dreamcompute panel, I created a private key and downloaded it, a .pem file. Using PuTTYgen, I converted this file to .ppk as ...
1
vote
0answers
36 views

Slow ssh login - Activation of org.freedesktop.login1 timed out

On one of my servers I've noticed really delay on SSH logins. Connecting using the ssh -vvv options the delay occurs at debug1: Entering interactive session. extract of connection: debug1: ...
-2
votes
1answer
15 views

SSH Tunnel after VPN [on hold]

i need to create smth. like this: {Desktop} - VPN - {Server1} - SSH_TUn - {Server2} -> Internet I can make vpn-server as newbie and can make ssh_tunnel, but i donno how to route traffic ...
4
votes
4answers
4k views

Forward SSH through SSH tunnel

My situation : Me(localhost) -> Server A(ip:100.100.100.100) =>(server B(ip:192.168.25.100),server....) i'm able to SSH into server since it has a true ip if i then want to connect to server b, i ...
5
votes
1answer
1k views

Does OpenSSH SFTP server use umask or preserve client side permissions after put command (chrooted environment)?

I know this question has been already discussed, but by reading the posts I could not figure the answers, because some said "yes umask can work", and others say "OpenSSH put command always preserve ...
0
votes
1answer
42 views

SFTP clients not respecting default UMASK permissions [duplicate]

Here's my situation: I'm setting up an Ubuntu 14.04 web server for a team to share. I'd like the team to have read/write access to everything inside var/www/html (same as CHMOD 775 on every file and ...
2
votes
1answer
22 views

AWS :: Ubuntu instance consistently denying my private keys

Sorry to ask this question again, as I know its been asked a crap load of times... I have been through a bunch of previous posts but have had no luck. Have tried everything... Steps: 1.) Launch ...
5
votes
1answer
8k views

Temporarily disable ssh public key authentication from client

really hope you're doing fine. Is there a way to temporarily disable public key authentication when ssh'ing, and use password authentication instead? I currently want to access remote server, but I'm ...
-1
votes
1answer
25 views

Best way to manage multiple devices via SSH? [closed]

Are there any good tools for Ubuntu or OS X that allow managing ten to twenty devices via ssh? My setup right now is such that there is a remote server to which I log on and from there I access ...
0
votes
3answers
1k views

Why can't I SSH into a new EC2 instance I created from an AMI I generated?

I followed the procedures here: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html with the exception that I did not shut down the original instance, just let AWS reboot it. ...
-3
votes
1answer
32 views

SSH with user root from 2 different stations both running passwd [on hold]

A few days ago, we were connected to a xenserver through ssh (user root) from 2 different stations. And we tried passwd, and we changed the root password to 2 different passwords simultanously. And we ...
-1
votes
0answers
28 views

How can i ssh with my ipv6 via putty [on hold]

i configured my sshd_config as : AddressFamily any ListenAddress 0.0.0.0 ListenAddress :: ListenAddress [2001:bc8:2095:101::5]:512 i cant connect via putty. I tried the address without a ...
0
votes
1answer
21 views

Can't ssh after configuring sshd_config

I have configured my sshd configuration files to listen to ipv6 addresses, but forgot to uncomment ipv4 local addresses. Here is a snippet from my configuration file: AddressFamily any ListenAddress ...
0
votes
0answers
27 views

Simple secure firewalld allowing only ssh?

I am upgrading to CentOS 7 and learning firewalld. When I set up a new server my default iptable config for best security was (I believe this is a pretty standard config): # IPv4 iptables -F ...