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

learn more… | top users | synonyms (2)

0
votes
2answers
2k views

Start and shutdown tomcat via ssh

Updated I find out that the path of jdk it using is wrong. eval: 1: /opt/Java/jdk1.6.0_25/jre/bin/java: not found the Java should be lower case java, how is that happen? When I run this script ...
2
votes
0answers
7 views

Cygwin OpenSSH server does not respond after first command from PHP (Using phpseclib)

I got cygwin and sshd working fine. And there are no issues at all when using putty. It responds as expected even for multiple commands. But when using phpseclib , A response is received only for the ...
0
votes
1answer
18 views

how to meter an SSH network usage?

It may be a simple question, but how can I see how much bandwidth an SSH connection, in Unix and Linux, has consumed since the login time until the SSH session is terminated (logged out)? Thanks, ...
1
vote
0answers
17 views

IPTables on two interfaces - cannot see where I'm going wrong

Ubuntu 14.4 I have used iptables before without issue but am having a real struggle with them today. I have two cards eth0 and eth1. eth0 does have more than one ip so has eth0:0 and eth0:1 etc. If ...
-1
votes
0answers
7 views

OpenSSH for windows using /cygdrive/g/.ssh as home folder [migrated]

My problem is simple. I just installed OpenSSH ( I also have cygwin, but I need to have the windows command line ssh.exe working ) . When doing ssh -T git@github.com I see that ssh.exe is trying to ...
0
votes
0answers
45 views

Internet works, can ping everything but one IP does not connect [on hold]

An hour ago I was connected to my vServer via SSH and edited the mysql database. Since ~45 Minutes I can not connect to that server. The problem is only affecting my desktop Other devices in my ...
1
vote
2answers
580 views

How to use ssh to copy a file multiple hops with agent forwarding?

I have a group of servers all properly configured with SSH agent forwarding. It is a typical bastion server style configuration where the only machine you can connect to from the outside is server A. ...
0
votes
0answers
23 views

As a user with a home server, is it particularly bad or dangerous to open port 22 to my server? [migrated]

I have a CentOS home server that I use for various things, which sits on my home network behind my router. Normally when I want to do something remotely I will VPN in (my router has a built-in OpenVPN ...
20
votes
10answers
128k views

Check if port is open or closed on a Linux server using SSH?

How can I check if a port is open or closed on a Linux server (running Cent OS 5 and cPanel) using SSH? EDIT: And how can I open the port if it is closed? Thanks, James
1
vote
2answers
3k views

git ssh problems

I have a git repo I am trying to use this command on a remote. $ git push origin master ssh: connect to host port 22: Bad file number fatal: The remote end hung up unexpectedly. I am trying to do ...
1
vote
1answer
20 views

Ubuntu 14.04 LTS - SSH and VNC cannot be connected infrequently / connection loss

sometimes it seems to be impossible to establish a connection to this server. Later when a connection could then be established I am not able to see any hints what was causing this behaviour. When I ...
0
votes
2answers
16 views

What is causing the famous “broken pipe” when I use tmux inside an SSH session?

Scenario1: I SSH from my employer (OSX Yosemite SSH client) to my home server (Debian stable) and (re)connect to a tmux session. If I leave the terminal inactive for a while (~20minutes), it seems ...
3
votes
3answers
2k views

CYGWin and sshd. Accepts authentication, but won't connect

Everything I find relating to this is the "ssh-exchange-identification:" error. This doesn't happen for me. I get two lines: Connection to localhost closed by remote host. Connection to localhost ...
0
votes
1answer
24 views

sshd on a minimal Linux: “Failed password for invalid user root”

I'm trying to start SSH server on a minimal Fedora installation. And I mean really minimal: one that is produced by diskimage-builder ramdisk builder. It does not even have users (absent /etc/passwd ...
0
votes
2answers
17 views

Adding an SSH public key to a new account without enabling password authentication

On a SSH server, I have the following (truncated) configuration: PubkeyAuthentication yes PasswordAuthentication yes On my client, I have a key pair, and have added my public key on the server ...
-3
votes
1answer
24 views

Issued kill -9 -1, centos not working

created user in centos and edited nano /etc/passwd and edited created user as user:x:0:0::/home/user:/bin/bash and logged as that created user and issued kill -9 -1, from then on words my server not ...
1
vote
2answers
41 views

Where's sshd in OpenSuse 13.2?

After I installed OpenSuse 13.2 I discovered that even if the ssh connection to the box were successful I could not find the running service as I did before (with chkconfig command) Why? My last ...
1
vote
1answer
40 views

SSH Update and .profile is not sourced anymore

On a RHEL5 System with openssh-5.3p1-84.1.el6.x86_64 I defined the variable BLA in ~/.profile: export BLA=hello Then I run the following: # ssh localhost 'echo $BLA' # hello I see that the ...
0
votes
1answer
23 views

How to do SSH authentication and CVS update automatically from cron job?

I call a script from cron job. In the script it needs to run CVS commands to update from a remote repository. To do that, it needs to SSH authenticate. I put the following code in the script ... ...
0
votes
1answer
279 views

OpenSSH libaudit.so missing

I have a server running CentOS 6.3. I want to re-install openssh on my server. When I use yum install openssh-server I get this error: Error: Package: openssh-server-6.1p1-5.el5.1.x86_64 (CentALT) ...
5
votes
4answers
3k views

How to edit command completion for ssh on zsh?

I'd like to set up command completion on zsh to display host names after I type ssh [TAB] taking the names out of my .ssh/config file (and preferably from known_hosts and /etc/hosts and anywhere ...
1
vote
3answers
26 views

Server login fail

When I login in my server using ssh, it shows me a message with the number of failed logins since the last sucessfull login. Currently I have this: Last failed login: Wed Jan 28 17:54:17 EST 2015 ...
6
votes
1answer
3k views

Can I configure VSFTPD to listen only to localhost?

I have a legacy app that needs FTP and cannot do SFTP. My solution is: put an FTP server in place using VSFTPD configure the firewall to accept port 21 connections only from localhost Set up an SSH ...
1
vote
1answer
71 views

SSH key login not working

i am having some problems logging in to one server to SSH via a key this is the client output: ssh 'importer@pdwhost.iwillkeepthis2.me' -p 2201 -v OpenSSH_6.0p1 Debian-4, OpenSSL 1.0.1e 11 Feb 2013 ...
3
votes
4answers
2k views

Why do some ssh sessions offer autocomplete and some not?

Very newbie question! I'm sshing to two different servers, both part of the same Amazon AWS cluster. They're not run by me. On one ssh session, the terminal lets me autocomplete. On the other ...
10
votes
1answer
331 views

Upgrading openssh-server within an ssh session

Suppose that you issue apt-get upgrade from an ssh session and one of the packages to be upgraded is openssh-server. Is the new sshd process restarted after the upgrade? If yes how is the session ...
0
votes
1answer
25 views

SSH connection refused after installing webmin

I'm running Debian Wheezy on Amazon EC2, from their offical image: http://deb.li/awsmp I've got my SSH key and everything has run perfectly until I installed webmin via the deb-packages: ...
1
vote
1answer
46 views

Git clone over SSH access denied only from specific server

I have an Ubuntu 12.04 server inside my office network that is being used to host our git repos. The server is running Gitlab 7.1.1, and has SSH on a non-standard port. It works perfectly for ...
0
votes
0answers
11 views

Handing server auth.log [on hold]

I'm running an Ubuntu VPS. Every morning, my auth.log seems to be overrun with failed login attempts from various IPs. This list was a lot larger when I was still allowing password access to the ...
0
votes
0answers
17 views

SSH using Agent Forwarding with Windows Host OS, Vagrant Ubuntu Guest OS, and Keepass/Keeagent

Intent: To be able to deploy to lan-example.com from any dev environment; whether it be directly from the virtual OS, or any single-OS system, or even over the internet using ONE SSH key stored in ...
1
vote
1answer
14 views

Configuring Pfsense via ssh

I want to know how i can completely configure and add add tables to pfsense via ssh. my goal is to have a web installer that configured multiple system and based on the output it will configure the ...
2
votes
3answers
4k views

How to specify file permission when putting a file using OpenSSH sftp command

I am using various SFTP clients for uploading files to an SFTP server and I have a problem with default permission used when putting files. When requesting to put a file, SFTP client like WinSCP or ...
3
votes
3answers
636 views

Openssh sftp-server: .filepart support?

I am trying to setup a SFTP server, running off Ubuntu Server 11.04. I installed openssh-server to provide SSH access. What I am trying to do is make file uploads run with a suffix (.filepart or ...
1
vote
1answer
307 views

SSHing between EC2 instances without having to provide key

I am trying to enable SSHing from one EC2 instance to another without a key. $ ssh ubuntu@slave gives me a permsission denied (public key) Whereas $ ssh -i aws-key.pem ubuntu@slave works correctly ...
1
vote
1answer
24 views

OpenSSH as SFTP server: Trigger successful and faulty changes

I am using the current OpenSSH version on Debian 7.7 Whezzy, which is, according to dpkg, 1:6.0p1-4+deb7u2. I configured OpenSSH to allow clients to connect using SFTP, and read and modify (upload or ...
0
votes
1answer
19 views

closing ssh tunnel when using connection sharing without killing ssh?

I typically use ssh with connection sharing enabled; this causes any ssh tunnels I create subsequent to the initial ssh login to use that connection. Is it possible to close an ssh tunnel without ...
0
votes
1answer
24 views

Can't change folder ownership via SSH

For some reason, I have a folder that I cannot read nor change its ownership. If I do a ls command, this is what I get: drwxrwxrwx 4 myusername myusername 4096 Jan 26 20:35 media1 <--- OK ...
0
votes
1answer
59 views

Writing a fail2ban multiline regex

I've got some troublesome hosts trying it on with an SSH server I run, and I'm trying to ban them using fail2ban. Problem is, I haven't done much work with regexes, and even less with Python regexes. ...
0
votes
0answers
10 views

HTTP Post over reverse SSH connection - data cut off

Here's a schema of the setup: Client --HTTP-Post--> SSH Server <--rSSH--> Camera An IP-Camera is behind a firewall / NAT and therefore opens a reverse SSH connection (tunnel) to a publicly ...
2
votes
3answers
1k views

Passwordless ssh into the same machine

OK, I know the basics of how to set up passwordless ssh: create a keypair using ssh-keygen then add the public key from id_dsa.pub into the host's .ssh/authorized_keys. So for two different machines ...
0
votes
1answer
26 views

How to change SSH key on Google Cloud?

I need to replace the existing SSH key with a new one, but I don't see such options in Cloud admin panel. What is the right way to do this?
0
votes
0answers
39 views

SSH issues on centos [migrated]

I'm trying to switch all of my servers to ssh key auth logins. I have it working with some servers but for what ever reason my new centos server is not working correctly. I am on windows and using ...
1
vote
1answer
87 views

How do I set up an ssh -w tunnel VPN between AWS VPC and a Linode?

I'm probably not going to use this for the long term, but I still want to know why this isn't working. I've set up a simple ssh tunnel from my Linode instance to one AWS EC2 instance within my VPC. ...
1
vote
1answer
46 views

SSH issues: keyfile and host file not working as expected

When I login to server with a key ssh -i /home/me/.ssh/id_rsa server everything goes without glitch. The key is authorized on the server. However if I try to do same from a shell script, I get a ...
2
votes
1answer
377 views

Make SSH_ORIGINAL_COMMAND available in AuthorizedKeysCommand context

Using SSH_ORIGINAL_COMMAND in AuthorizedKeys is so helpful, I'd like to know how to access it in the AuthorizedKeysCommand context (via env ?). Is this possible ? can anybody give me advice on going ...
0
votes
0answers
5 views

ssh-keygen change passphrase, askpass prompt still asks old one. seahorse related? [migrated]

I changed my ssh passphrase with ssh-keygen -p and it is correctly updated in the id_rsa file. I then removed all keys from ssh-agent. Seahorse (or gnome?) reloads all keys immediately into the ...
30
votes
1answer
15k views

ssh hostname returns “Bad owner or permissions on ~/.ssh/config”

When I try to ssh to another box, I get this strange error $ ssh hostname Bad owner or permissions on ~/.ssh/config But I made sure that I own and have rw permissions on the file: ls -la ~/.ssh/ ...
0
votes
1answer
29 views

Amazonubuntu ec2 is not responding via ssh [on hold]

It used to work but now it won't respond. ssh -i aws-niklas140428.pem ubuntu@54.72.xxx.x It does respond via HTTP though and I can restart it in the webGUI at aws.amazon.com How can I find the ...
-2
votes
4answers
74 views

Change SSH Port, but spoof on port 22

I have changed the SSH default port (by updating the Port attribute in the /etc/ssh/sshd_config file). But what I would like to do is still make it appear as if everything is working as expected if ...
0
votes
0answers
7 views

Port forwarding not working on Verizon FIOS router [migrated]

We have a MacPro connected to a Verizon FIOS modem/router. We are trying to connect to it via ssh remotely. It is set to listen for ssh on port 23. It works fine using LogMeIn Hamachi. But using the ...