SSH (Secure SHell) is a protocol for running commands on a remote computer.

learn more… | top users | synonyms

1
vote
2answers
87 views

Permission denied scp'ing large file

I'm trying to copy a 4.5GB file to my Raspberry Pi: scp -r ~/firmware/ pi@192.168.2.8:/opt/ pi@192.168.2.8's password: scp: /opt//firmware/.DS_Store: Permission denied scp: /opt//firmware/.git: ...
1
vote
1answer
64 views

CentOS 7 setting default port

I've been doing some maintenance on a CentOS 7 server and I noticed that it wasn't using the default ssh port (22). I changed it back to it's Port 22 in the sshd_config which works but when I try to ...
1
vote
1answer
65 views

Chdir fails even though the user has a home directory assigned

I'm facing this problem - when I ssh to the server, the user is authenticated correctly, but then the connection is closed with: Could not chdir to home directory /home/blazej: No such file or ...
1
vote
1answer
177 views

ufw allow ssh - and then connection gets lost

I'm trying to set up a debian server in the cloud, over SSH. I log in using a key. After the initial startup I want to set UFW: apt-get install ufw ufw allow ssh ufw enable This is how I've done ...
1
vote
2answers
202 views

SSH login not accepted, and no delay between ssh login attempts

When ssh'ing to my server (RaspPi running Arch), it doesn't accept my password (which I'm 98% sure is correct), and the usual delay before Permission denied, please try again. is not there. Elsewise, ...
1
vote
3answers
95 views

Audit simultaneous logins in AIX

We are in a banking enviornment and our core system is based on AIX. Multiple users are logging in with the same userID at the same time using SSH. I know I can see who SSHed into the system from ...
1
vote
1answer
82 views

Keep x11 GUI app forwarded over ssh alive after lost connection

I am forwarding gftp with putty from my Ubuntu server to my laptop. Is it possible to run the program in a way that will allow it to continue working on the server if my laptop looses connection? ...
1
vote
1answer
27 views

Problems with ssh connection

I was trying to connect to my raspberry in local network by ssh from my pc where I have debian os. I tried to connect typing ssh pi@IP_ADDRESS and this return me after a while connect to host ...
1
vote
1answer
326 views

Enable ed25519 in Debian wheezy

In Debian 7 it seems like ssh doesn't accept ed25519 keys. support for ECDSA was not added until end of 2013, but wheezy is older How do I enable this in Debian 7?
1
vote
2answers
72 views

.ssh/rc not working

Whenever I ssh to my desktop, I change $TERM to ansi so that ssh works better with the Windows terminal. I decided to create ~/.ssh/rc and add TERM=ansi to it. The problem is, after I ssh into my ...
1
vote
1answer
59 views

Showing prompt from ssh command

I am running this command: ssh -i key user@domainname 'bash -l -c "command"' The command script calls on another script that asks for input at some point. The problem is that the prompt for the ...
1
vote
1answer
824 views

Generate a SSH pair with AES-256-CBC

Okay its easy to create a ssh pair with ssh-keygen, but how do I generate with ssh-keygen a ssh pair which allows me to use AES-256-CBC? The default one is always AES-128-CBC, I tried already ...
1
vote
1answer
72 views

Correct ssh config file settings to tunnel to a 3rd machine

I'm trying to tunnel to and end server via a bridge server. So far, I've been able to get it working from the command shell properly using the following command: ssh -A -t bridge_userid@...
1
vote
2answers
158 views

SSH to servers with sudo access - script throws unexpected end of file error

I've to run a command iptables --flush in 100+ servers. I don't have root credentials, but have sudo access for my account. So I come up with a below script to run the command in all servers. I added ...
1
vote
2answers
1k views

SSH into VirtualBox on Mac

I just installed VirtualBox on my mac, created a new Ubuntu Virtual Machine with "Use an existing virtual hard disk file" of the Cloudera Hadoop disk image. I'm able to start and run the virtual ...
1
vote
1answer
139 views

Run an existent tmux session at SSH login or create if not exist

I want to open a tmux session every time I login through SSH to my server. If the session exist, connect to it, if not, create and connect to it. I think I need edit ~/.bashrc file to do this, but I ...
1
vote
1answer
32 views

How to Find, remove and show counter via SSH?

I want to run a command which searches for specific files, then removes them then show how many already is deleted. So far I was using: find -type f -name "*.cache" -exec rm {} \; but when I have ...
1
vote
2answers
111 views

Add user on Jessie that can log on to FTP but has no shell

I have set up a vsftpd server and I used chroot to keep users locked inside their home directories, which works just fine. I have since tried to edit the passwd file to set the default shell to /bin/...
1
vote
2answers
176 views

rsync --delete did not remove file in destination while with ssh

On my RHEL6 pair of servers, I tested the rsync from server-1 to Server-2 with SSH. Everything was good as expected. However, when I moved a file under A directory, A/x.file to B/ of /home/user on ...
1
vote
1answer
148 views

SSH Tunneling - Local and Remote Use Cases

I just learned the basics of SSH tunneling from googling. I saw this interesting question: How does reverse SSH tunneling work? But I still find it a bit confusing, more specifically on the user@...
1
vote
1answer
99 views

tail file from remote server and nslookup on local

I need a script for resolve hosts. For now I run this script on local machine for i in `tail -F access.log | awk '{print $8}' | awk '{gsub("http://|/.*","")}2' | awk '{gsub("http://|:.*","")}1' | ...
1
vote
1answer
2k views

Difference between “local port forwarding” and “dynamic port forwarding”?

I am trying to understand the difference between "local port forwarding" and "dynamic port forwarding". In the ssh command for "local port forwarding", is it always required to specify the ...
1
vote
1answer
504 views

How to discriminate between SSH and SCP for QoS in OpenWRT (and other systems)?

I regularly upload large amounts of data using SCP through my DSL upstream connection, which is limited to 1kbit/s. While I really want interactive SSH sessions to have highest priority, simply ...
1
vote
1answer
7k views

SSH Server Not Responding to Connection Request

I'm attempting to set up an SSH server on my local machine using OpenSSH. When I try to SSH from a remote host into my local SSH server, the SSH server doesn't respond and the request times out. I'm ...
1
vote
1answer
163 views

Cannot connect to ssh

Hello I type the following command: $ ssh -vv root@192.168.11.9 I enter the password correct, but I am getting the following error: debug2: we sent a password packet, wait for reply debug1: ...
1
vote
1answer
900 views

Simple Radius authentication

I'm looking into using Radius as an authentication server for a few Ubuntu servers when accessing through SSH. I have tried using libpam-radius-auth but it doesn't work quite as I need. My goal is to ...
1
vote
1answer
382 views

Running remote GUI application over SSH as a standard non-admin user [duplicate]

I'm running a HelpDesk for internal call center employees. All employees have headsets in conjunction with their jobs, and I'm working on a script to remotely launch a minimized Mumble session via ...
1
vote
3answers
6k views

How to use SSH to move a file from Ubuntu to Windows?

I am logged onto a windows machine. I am using Putty to login to an Ubuntu machine on the same network. Now I'm trying to move a .c file from the Ubuntu machine, to the Windows machine, edit it there, ...
1
vote
1answer
758 views

Xming wont start if running as super user

Scenario: I am attempting to run WireShark through xming server located on a windows 8.1 machine off of a Raspberry Pi B+ that is hardwired to a Wifi Pineapple Mark 5. Xming successfully launches ...
1
vote
1answer
108 views

Why is sshd getting restarted when yum cron starts?

I have a new server build (Centos 6.6), and have yum-cron installed and running in cron.daily. In looking through my messages and secure logs, it appears that right after yum starts updating and ...
1
vote
1answer
199 views

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

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
1answer
360 views

What happens to screen session over ssh when connection is lost? [closed]

I ssh to a remote computer, and create a screen session there. Then I lose the internet connection. When I ssh again to the computer, I want to see if the created screen session is still there, so I ...
1
vote
1answer
1k views

rkhunter warning about ssh root access when that access is not allowed on the system

I just ran rkhunter --check and all was good except this: Checking if SSH root access is allowed [ Warning] What does this warning mean? SSH root access is not allowed on this ...
1
vote
4answers
611 views

find: missing argument to `-exec'

when I'm trying to use this command var1=`sudo -u psoadmin -H -s ssh daill_scp@files.dc1.responsys.net find . -maxdepth 1 -type f -mtime +14 -exec ls -lh \{} \; | awk '{print $5, $9}'|egrep -v '^./...
1
vote
2answers
793 views

bash scripting : using expect

I am facing an issue when I run simply these commands. The remote server want to pass "yes" to add the key in RSA file because first time connection established with scp. commands are given below #!...
1
vote
1answer
4k views

ssh connection to server closed immediately after authentication

I had the same problem as ssh connection to server closed after authentication immediately I connected to my server (in this case a raspberry pi running pi musicbox) via ssh, it would accept my ...
1
vote
2answers
4k views

Enable ssh host to guest & guest Internet on CentOS 7 guest with VirtualBox

I have 2 CentOS 7 guests running in VirtualBox on a Ubuntu host. I want to be able to: Connect using ssh from host to guest Download/install packages from the Internet on the guest. I currently ...
1
vote
2answers
195 views

How do I prevent just 'exit' from being saved when I close an SSH connection?

When searching for a way to do this on Google, all I can find are ways to quit the session without saving history (like kill -9 $$), but I have the opposite problem. I want to save all of my history, ...
1
vote
1answer
127 views

Integer after username in OpenSSH client separated by colon

I have a reverse SSH server in Cisco router(runs IOS operating system) and it listens on port 2001: C1841#sh control-plane host open-ports Active internet connections (servers and established) Prot ...
1
vote
2answers
133 views

providing password to ssh [duplicate]

The situation: I have an IP : 192.168.1.1 $IP username : root (or whatever) $USER and a passwd: foo $PASSWD Is there a way to give $PASSWD to ssh ? like PASSWORD_VAR=$PASSWD ssh -l $USER $IP ...
1
vote
1answer
143 views

Throttle accounts after failed SSH login attempts

I have to set up a server that will allow remote logins. Obviously security is an issue. In this first pass we are discussing:- Locking a person for 15 minutes if they fail to login correctly three ...
1
vote
1answer
39 views

Transfer file from remote computer without console

I need help to transfer file from remote Server A to server B (login to B with Terminal (putty)), but I also need to do that in background (so I can close terminal and move away). What have I tried is ...
1
vote
1answer
107 views

Running process on a remote browser

I work on remote machine using the ssh protocol. I try to test a tool which is a process running on the port 5000. Code: tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN ...
1
vote
1answer
328 views

killing tunnels for a user connected with ssh -N

I created a forward only ssh connection with the following: ssh -i id_rsa -o TCPKeepAlive=yes -o ServerAliveInterval=10 \ -N -n -R 127.0.0.12:8888:127.0.0.12:8888 fwduser@192.168.1.201 Mow, ...
1
vote
1answer
46 views

How to install software on to multiple linux clients

Is there any free way or method for ssh that could be used to install and update linux clients for a ubuntu laptop. I do not have password less ssh but the admin password is the same for all of the ...
1
vote
1answer
15k views

Forwarding X11 not working - Error: Can't open display: localhost:11.0

LM 17 Xfce OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 Despite googling everywhere, I cannot seem to get this to work. I keep getting this error. $ xlogo Error: Can't open display: localhost:10.0 I have tried ...
1
vote
1answer
75 views

How to connect to another machine over SSH?

Is it possible, by simply issuing: ssh user@ip_number:port and providing a password? Or does something have to be installed, or not blocked? I am referring to two machines over the Internet.
1
vote
1answer
884 views

List connected via SSH users [duplicate]

I checked this answer and this option - it is good, but it requires sudo rights. I need that this command may be performed by any user, for this reason I am using next command ps -ef | grep sshd: | ...
1
vote
1answer
136 views

Forward every port depending on domain

A friend and I are doing some little webhosting for us. Currently all the pages are running on one Server via Apache2's virtual hosts. Know we wanna make single servers for each site with ssh-access, ...
1
vote
1answer
99 views

Why is the result of this for and while loop different? [duplicate]

I have a for loop: for host in $(cat ./hosts) do echo -e "$host" ssh -o "StrictHostKeyChecking no" $host "uptime" 2>/dev/null echo -e "\n" done and a while loop which is supposed to the ...