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

learn more… | top users | synonyms (2)

1
vote
2answers
55 views

Allow only first login to ssh with password

I would like to allow to first remote login via ssh using password for a new users. After that authentication should be restricted to public key. How to deal with that? I mean how to restrict second ...
1
vote
1answer
191 views

Trouble changing SSH port

I'm running a CENTOS web server with WHM and CSF firewall. I'm trying to change SSH from the default port. I've opened up the port in CSF and modified /etc/ssh/sshd_config uncommenting the port line ...
-1
votes
0answers
18 views

Can't add user to gitolite server

I have gitolite server installed on debian 7. When I add users through the gitolite-admin repo, their keys appears in the /home/gitolite/.ssh/authorized_keys, however they can't login. Output from ...
1
vote
0answers
45 views

How to restore clonezilla image having only ssh access and no free partition?

There might be possibly more than one right answer. Having little experience in the area, I'm asking about the best / most reasobable way to manage my tools and resources in this particular task. The ...
0
votes
7answers
145 views

better way to loop through a list of servers

I regularly do things where I loop through a list of servers to take some action. For example: for s in `cat servers.txt` ; do echo; echo $s ssh $s 'do something' done I'm wondering (from a ...
15
votes
2answers
560 views

Does Rsync Allow Files To Be Synced Both Ways?

I have backed up a linux web server using rsync with cygwin. I now have a perfect copy of the server on my windows laptop. If i delete or modify a file on my laptop and run rsync again with cygwin ...
3
votes
4answers
150 views

IPTables: allow outgoing SSH

I tried to write my rules for securing a web server with just http/https, apt-get updates, sending mails SSH access. So far I've done that: IPT=/sbin/iptables $IPT -F $IPT -X $IPT -t nat -F $IPT -t ...
3
votes
6answers
285 views

How to backup large directory from linux server to windows machine

Up until now ive been using FTP to connect to the server and copy the files to my local machine but the directory has grown 3gb in the past few weeks and it usually takes 40mins to copy 100mb so FTP ...
1
vote
1answer
35 views

OpenSSH daemon ignores ServerKeyBits directive

I'm having an issue with my Fedora 19 x86_64 virtual machine. It seems to ignore my 4096-bit key setting. I've set the ServerKeyBits directive to 4096, stopped the sshd service, deleted all host keys ...
0
votes
1answer
27 views

Bash function hangs while command run perfectly without function

Following function hangs : ssh() { local RESULTS; RESULTS=$(ssh $USERNAME@$SERVER $SSH_COMMAND1); echo $RESULTS; } ssh; while if i run following commands they work fine : ...
0
votes
1answer
40 views

SSH Tunnel - Proxy Not Working From Remote Location (Login is working)

I have just set up a Cygwin SSH server and successfully tunneled to it from a remote location. Logging in works but when I point my browser to localhost 8888 (sock 5), all connections are refused. ...
1
vote
0answers
22 views

Git does not prompt for ssh key password [migrated]

I have an ssh key which is password protected. When I attempt to SSH into a remote computer (ssh user@example.com), I get a little dialog which prompts me for the password. Once I have provided the ...
0
votes
1answer
22 views

How to notify a handler at the end of execution?

I have a Rackspace instance that I use for testing. I am using a seperate user for running Ansible, and due to my SSH configuration update tasks, if I notify the "restart ssh" task when needed, later ...
0
votes
1answer
29 views

Setting up a chrooted SFTP user in a directory whose parent has group write permissions

I have a user who only has sftp privileges (no ssh) and who is chrooted in SFTP to /data/docker. /data (which is a separate drive) has 775 permissions and I'd like to keep it that way. However, when ...
-2
votes
1answer
53 views

Why I am not able to ssh as root?

root@web04:~# ssh -v -i.ssh/id_rsa root@11.11.11.4 OpenSSH_5.9p1 Debian-5ubuntu1.4, OpenSSL 1.0.1 14 Mar 2012 Warning: Identity file .ssh/id_rsa not accessible: No such file or directory. debug1: ...
6
votes
2answers
317 views

ssh is no longer using ~/.ssh/config

I cannot ssh anything I was able to. After a little digging I found out that it's not reading ssh config from my home directory. $ ssh -xvvv server OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 debug1: ...
0
votes
1answer
35 views

scp to remote server permission denied

I try to copy files to a remote server (OSXServer) using scp. I have 2 user accounts on that server with what I thought the exact same settings. Now I tried the copying files into the respective home ...
2
votes
2answers
66 views

How can I disable/suppress the warning I get for having SSH enabled on an ESX/ESXi host?

I administer a large number of ESXi hosts, and in order to do that efficiently, I pretty much need to have SSH allowed into the hosts at all times, as it's just far too burdensome to enable and ...
0
votes
2answers
47 views

Access local console via SSH

I am searching for a way to interact with a local console via SSH - just as you would do with an directly connected keyboard. In my particular case I got a debian server (console only, no X system) ...
5
votes
1answer
49 views

Send interactive zoning commands to Brocade switch

I have a Brocade FC switch that I'd like to do some zoning on. I have a build file with too many lines to copy-paste into a normal interactive session, and I have ssh set up with pre-shared keys ...
-4
votes
1answer
35 views

Use ssh to tunnel to another device with putty [closed]

I currently use ssh to tunnel to port 80 on a server remotely. Is it possible that I can tunnel to another device on the remote network that I'm connecting to? I can obviously ping the node from the ...
0
votes
0answers
16 views

SMB reverse port forward fails to connect

I have a rather complex server setup consisting of a reverse SSH tunnel through a Linux VPS. Namely, server A is a Mac Mini and runs a script which reverse tunnels to the VPS, which we'll call B. ...
1
vote
1answer
29 views

ssh connection freeze after password phase

I'm trying to connect to a server (Oracle Linux 6.3) and after I insert the password the session just freeze. I checked the audit log and I've authenticated successfully, after I restarted the ...
0
votes
2answers
30 views

Can I limit my autoSSH Tunneling Speed with trickle and ssh config file option?

When I use only ~$ autossh site1 it work perfectly, but whit trickle the pameter site1 is considered as DNS Name instead of conf block. User@VM:~$ sudo trickle -d 10 -u 10 -- autossh site1 [sudo] ...
0
votes
1answer
84 views

Docker doesn't start MONGODB, and IPAddress doesn't appear, when started with other services

I have been trying to build an OS image from Fedora unsuccessfully to start the following: Systemd SSHD RabbitMQ MongoDB I can get the first 3 (Systemd, SSHD and RabbitMQ-Server) to work. I can ...
-2
votes
0answers
24 views

After recover sshd_config on my VPS my TeamSpeak 3 client can't connect with server [migrated]

I'm destroy my default sshd_config file in /etc/ssh/ on my VPS and I'm recover this to default one. After this I'm trying to connect with my TS3 server on this same VPS. OS says me TS is ON and ...
-1
votes
0answers
72 views

No route to host: I can SSH to myself via the IP my router assigns me but not to myself via the IP my ISP assigns me [migrated]

I'm positive this question has been answered somewhere else but I'm not sure what to search for. (I'm trying things like "telnet ubuntu ssh daemon unable to connect".) I can SSH into 10.0.0.9 I can ...
0
votes
1answer
41 views

Can't gain access to SFTP after changes in /etc/ssh/sshd_config

I simply trying to make some changes in sshd_config file with port and other line (don't remember which one) and now I can't log in to my SFTP. It is possible to make some changes in this file using ...
0
votes
3answers
70 views

Tail a file from ssh and mirror to a local file

To tail a file over ssh, I can use ssh -t remotebox "tail -f /var/log/remote.log" However, it is possible to sync the tail with a local file? So a file automatically mirror the update of the tail ...
-2
votes
1answer
84 views

How to ssh localhost login without password [closed]

My os is OSX.When I do ssh localhost, always ask password to me.But I don't know password.How to login without password. ➜ ~ rm -rf ~/.ssh ➜ ~ ssh-keygen ➜ ~ ls -lstra ~/.ssh ...
0
votes
2answers
54 views

Forward SSH request to an External Server to an Internal Server

I have a VM config currently where I have 1 external IP pointing to a VM with an Nginx HTTP Reverse proxy serving HTTP Web Pages from several internal VMs without external IPs. I need a similar setup ...
0
votes
1answer
26 views

Allow ssh access to git pull on remote machine

We have a server with some of our git repositories on and I would like to be able to clone one to our webserver (which runs debian). I ran ssh-keygen on the webserver and copied the public key into ...
6
votes
2answers
220 views

Manage SSH Users with MySQL backend

is there a possibility to use a (mysql) Database to manage SSH login credentials instead of /etc/passwd ? I know I could use ldap but I only want simple user management and ldap seems a little bit ...
0
votes
3answers
50 views

Is there a command for allowusers in sshd?

Is there a command to allow / deny users in OpenSSH server (sshd)? I know you can add AllowUser / DenyUser in the sshd_config and reload the server but I'm trying to come up with a generic way that ...
-3
votes
1answer
87 views

SSH - Connection refused [closed]

I have setup on a server VMware ESXi 5.5.0. I have add the operating system Oracle Linux 5 I'm trying to setup ssh for local computers that runs on Ubuntu. But I get the error Connection refused. I ...
2
votes
0answers
121 views

Running Ansible locally inside a Dockerfile SSH authentication issue

I'm unable to run my ansible playbook inside a Dockerfile due to authentication issues. Here's my dockerfile: FROM ubuntu:14.04 MAINTAINER hyperfocus # Update system and install ansible RUN apt-get ...
3
votes
0answers
33 views

How do I use colors in the MOTD? [migrated]

I edited the default /etc/update-motd.d/00-header, adding some color to make it easier to read: printf "Welcome to \e[1;34m%s\e[0m \e[2m(%s %s %s)\e[0m\n" "$DISTRIB_DESCRIPTION" "$(uname -o)" ...
1
vote
1answer
80 views

Exit code 126 from SFTP

I've been notified that SFTP access is no longer working on an Amazon EC2 server running Ubuntu. I had done some work creating SFTP access for other users on this server. The limited user access is ...
-1
votes
1answer
30 views

Connect to Amazon EC2 not using SSH?

Is it possible to connect to EC2 instance directly? This is possible on Rackspace using a java servlet inside your browser where you get a "remote monitor window" (not SSH but a local login screen). I ...
0
votes
1answer
35 views

Amazon Elastic IPs: SSH timeout

Amazon EC2 - what I did: I created a free Ubuntu instance. I attached a new private IP address under Network Interfaces. I created 2 elastic IPs, attached to the default and new private IP address. ...
2
votes
4answers
114 views

Can one server see traffic to another server inside a VLAN?

Scenario: I have a rack of servers that all belong to the same private VLAN. I transfer data from Server 1 to Server 2. Is it possible for any of the other servers to sniff out the data sent or is ...
0
votes
2answers
52 views

How do I connect to Windows Desktops from a Linux Server? [closed]

I have system A on a network connected to the Internet, another system B on a different place (different location also). I have a VPS server with SSH connectivity. Both A and B are Windows, and the ...
2
votes
2answers
52 views

How to keep script from swallowing all of stdin?

I have a script that reads from a pipe in a loop and runs an expect script and a normal shell script in the loop. Both scripts run ssh to another server to grab a piece of data. For example: cat ...
1
vote
1answer
83 views

Securely copying files between two remote servers

I am trying to copy (scp) files from one remote server to another remote server. The remote servers are running Ubuntu and are using SSH authentication. The servers synchronise with LDAP, and all ...
0
votes
0answers
63 views

Multiple Reverse SSH Tunnels using Single Port

I am able to accept reverse SSH connections from multiple remote systems on a single server using a port for each connection: Remote A: ssh -fN -R5000:localhost:22 user@server-ip -p22 Remote B: ssh ...
0
votes
0answers
60 views

How do I install a bitnami LAMP module by SSH command line?

This is a pretty straightforward question that I cannot seem to find an answer for. I already have a running Bitnami LAMP stack on an Amazon EC2 instance. Where do put the installer ...
0
votes
1answer
40 views

ssh session dies after three hours on inactivity

I usually leave my PuTTY terminal window open during the day and lock the screen when I go to lunch or leave to go offsite. Lately though when I come back, my ssh session had died. Even though I use ...
-1
votes
2answers
58 views

Chrooted ssh user cannot ssh into server : broken pipe

I just tried the following to add a new user, chroot the user and give him access to the folder /home/me/public_html via sftp and ssh : ##the following command are done by root or a sudo user useradd ...
3
votes
1answer
38 views

SSH authentication mode selection

I am trying to figure out the SSH mechanism used while I try to ssh onto a production host. I see that the SSH client can choose among the available modes. But I'm not sure which mode is chosen and ...
0
votes
2answers
90 views

Script SSH to router and “enable” and run commands

I have a script that will ssh to a list of routers and run commands from commands.txt. I want to enable after I connect to the router through ssh before I execute the rest of my commands in ...