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

learn more… | top users | synonyms

6
votes
0answers
192 views

Linux iptables ssh port forwarding (martian rejection)

I have a Linux gateway performing NAT for my home network. I have another network which I'd like to transparently forward packets to, but only to/from specific IP/ports (ie. not a VPN). Here's some ...
6
votes
0answers
2k views

git-upload-pack hangs indefinitely

I have the following call structure: Jenkins runs fab -Huser@host set_repository_commit_hash:123abc. set_repository_commit_hash runs git fetch with pty = False. The child process ssh git@github.com ...
5
votes
0answers
810 views

Have tmux wait until I SSH in, to complete rest of Tmuxinator script

After recently discovering tmux and Tmuxinator, I've been trying to set up a development environment to use. Per protocol, we aren't allowed to store passwords/passphrases in scripts. So what I'm ...
4
votes
0answers
289 views

Restart a specific reverse ssh tunnel?

I have multiple machines in the wild that open reverse ssh connections to my server. Each machine out there is using a different reverse ssh port, which I use to differentiate between the machines. I ...
4
votes
0answers
8k views

“PTY allocation request failed on channel 0 stdin: is not a tty” when SSH'ing into a Debian server

My hosting space (Debian Wheezy) serves two websites (one WordPress and one Rails). Today I saw both were down and I rebooted the server. The Rails site works again and the WordPress one now says that ...
4
votes
0answers
1k views

Can't figure out why ssh_exchange_identification: Connection closed by remote host appear

At home, I have setup a Raspberry Pi with the latest version of Raspbian and with ssh enabled. I also use a Mac Book Pro with OS X 10.9.3. I use ssh pi@192.168.0.22 to do some work on the Raspberry ...
4
votes
0answers
753 views

SSH AuthorizedKeysCommand and SELinux

I'm trying to use the SSH AuthorizedKeysCommand in a CentOS 6.5 machine, but I'm encountering an SELinux error. When I switch SELinux to permissive mode - using setenforce 0 - it works, but when I ...
4
votes
0answers
4k views

How do I force ssh to use a second interface with higher metric?

I have a Crunchbang VM with two interfaces, eth0 and eth1, each of which connects to an OpenWRT VM (eth0 being 10.232.64.20 and eth1 being 10.232.65.20). I'm using Network Manager and DHCP. My ...
3
votes
0answers
119 views

Why can't I execute an SSH command on a remote host?

I'm accessing a remote host via a jumpbox. I can easily access the remote host if I access it via an ssh shell: ssh remoteHost Last login: Tue Feb 16 12:56:26 2016 from xx.xxx.xx.xx ...
3
votes
0answers
53 views

How can I know which IP address of a host is reachable from another?

I don't particularly need a "solution" to something, I'd just like to understand more of the landscape here. So on my CentOS box, I installed a CentOS VM specifically for learning Puppet. When the ...
3
votes
0answers
62 views

Check whether user logged in after hitting “Switch Users”

In Linux Mint, I know that I can use the last terminal command to view when a user last logged into their machine. In my job, however, I often work with employees who leave each day by simply ...
3
votes
0answers
126 views

X11 forwarding but open links locally

I have X forwarding between two machines. I doubt it matters, but the local machine is Windows running PuTTY and Xming. Is there any way that I can click a web link on a remote application and have ...
3
votes
0answers
436 views

SSH always refuses first connection attempt

There's an AIX box where I work and so I've not got any root access to it. When I connect to it using telnet I can get on fine. When I connect to it using SSH if I put in my correct password on the ...
3
votes
0answers
217 views

Xmove is unable to connect to X11 server via SSH X forwarding

I have a LAN where a windows machine running Cygwin (XWin server) is used to connect to a Linux host via SSH with trusted X forwarding. I connect with $ ssh -Y user@linuxhost without any issues and ...
3
votes
0answers
192 views

Why is my SSH authentication socket different from the man pages?

These two entries of man ssh-agent describe the SSH authentication socket: $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid> UNIX-domain sockets used to contain the connection to the authentication ...
3
votes
0answers
195 views

What default shell to use for an SSH user limited to a single command

When limiting a user to a single command via ssh, what default shell should be used for the user? This is a follow up to how can shellshock be exploited over SSH? I have a machine that is running an ...
3
votes
0answers
164 views

Operation timeout (in /var/log/secure)

Sometimes when connecting via ssh to my RHEL server, I get the following message back from the client: Operation Timeout Seems like a network problem, but when I look at /var/log/secure on the ...
3
votes
0answers
281 views

Kerberos Forwarding in SSSD

So, I'm trying to set up forwarding with Kerberos and seem to have some problems. On some of my servers I'm able to forward after receiving a ticket; however, some I'm not. My system setup is a ...
3
votes
0answers
534 views

Server freezes because of fail2ban

Lately I've experienced some problems with my server freezing or having network problems (I can't really tell which at this point). I'm running OpenSSH on port 443 and it seems fail2ban's anti SSH ...
3
votes
0answers
392 views

SSH Failing to fork with sshpass

I've a problem with port forwarding command using sshpass. Problem is that it's working on one server and does not work on another. Both are Debian 7 x64 boxes. sshpass -p password ssh -f -D ...
3
votes
0answers
1k views

.Xauthority file is empty

I have been trying to ssh -X to my cluster running OpenSUSE 11.2. It used to work well for me. But now I get this message: X11 connection rejected because of wrong authentication. Failed to open the ...
3
votes
0answers
406 views

Can't get SSH working anymore on Debian after upgrade

I have a vServer and can only login via SSH. After the latest apt-get upgrade command, I can't login anymore and get the following error message: "Network error: Connection refused". It seems that ...
3
votes
0answers
107 views

Remote script cleaning up

I run a remote script using ssh: local script: local_command ssh -p 222 user@server 'sh -s' < ./remote_run.sh remote script: some_command & sleep 10000 trap 'echo exiting' SIGINT SIGTERM ...
3
votes
0answers
551 views

Using nvidia-settings over ssh

Now the new nvidia-driver has implemented CoolBits for the newer graphics cards I'm attempting to control fan/clock speed over ssh. When attempting to run anything with nvidia-settings via ssh I get ...
3
votes
0answers
8k views

fatal: bad ownership or modes for chroot directory component “/”

I used to be able to connect via ssh with the user I have created but now I keep getting: "Write Failed: Broken Pipe" and I can only connect as root In the ssh auth.log I get the following: ...
3
votes
0answers
234 views

Slow terminal print out

Just installed (netinstall) debian wheezy on a second machine newer machine however the terminal print out is noticeable slower than on the old machine although the new have faster CPU, RAM and HDD ...
3
votes
0answers
2k views

The right way for dynamic ssh port-forwarding

Want my Firefox could use localhost:9099 proxy forwarded from vps server, why it doesn't it work this way? I always get bind: Address already in use $ ssh -vfND 127.0.0.2:9099 vpn OpenSSH_5.9p1, ...
3
votes
0answers
1k views

How to efficiently use Console2 with screen/tmux/byobu?

I'm using Console 2 and msysgit's bash to SSH into my Linux machines. There, I'm using screen (but considering tmux and/or byobu), but currently simply with one single-terminal session per ...
3
votes
0answers
476 views

Launching app over SSH with DISPLAY when user not logged in

After searching and searching without any luck I'm hoping someone here can enlighten me. I have a PC (Ubuntu with encrypted home dir). I wake this PC up from a shell script on my phone, the PC shows ...
2
votes
0answers
45 views

ssh X11 forwarding

I am trying to connect ssh from my laptop to my raspberri pi 3b locally. However when I try to connect by: ssh -v user@local-raspberri-IP it gets stuck at X11 forwarding. The output that I get is: ...
2
votes
0answers
48 views

git push/pull with ssh key

I have a 'git --bare' repo on a linux machine. I wish to allow another user from a different machine to push/pull to it. I have their ssh key. Is there some way I can allow them to execute the ...
2
votes
0answers
117 views

Cygwin/X DISPLAY number no longer :0?

I use Cygwin/X to ssh into a linux computer cluster using a Windows (10) pc. Yesterday I was in the middle of an ssh session using X11 forwarding. Suddenly one of the X windows open started to hang ...
2
votes
0answers
49 views

ssh-copy-id does not work

I know this issue has been discussed already. I looked at the other threads, and didn't find a question with the same issue, hope you could help me... I SSH from userA@hostA to userB@hostB. Both ...
2
votes
0answers
490 views

packet_write_wait Broken pipe even leaving top running?

This bloody error makes my headache going bigger and bigger everyday. I never met a same situation like this time. Well, after I authenticated into SSH successfully, doing few stuffs then my SSH ...
2
votes
0answers
67 views

update-initramfs failing after upgrading to stretch from jessie

I recently updated one of my Debian boxes to run with stretch, but unfortunately I run in an issue when it comes to the regeneration of the initramfs image. It seems that it doesn't recognize that I ...
2
votes
0answers
39 views

SSH/web servers in Linux containers improve security?

Scenario: A 'gateway' machine functioning as a router and firewall, connecting a small LAN to the internet. The machine also runs a webserver (hosting a simple website) and an SSH server, providing ...
2
votes
0answers
43 views

MOTD not displayed after installing openssh from source

On Debian Wheezy the default openssh server package displays the motd from /etc/motd. When i compile it from source (openssh-6.0p1) it won't display the motd anymore after an ssh login. Configure ...
2
votes
0answers
35 views

Does mosh save bandwith?

The mobile shell claims many benefits, especially with mobile connections. Many mobile plan prices scale with the amount of data transferred. So I wonder whether I can use Mosh to cut down in data ...
2
votes
0answers
138 views

Dropbear immediately drops connection on DD-WRT

I have a home wireless router running DD-WRT. I am unable to SSH into the router (Dropbear) even after restoring default settings and reinstalling the DD-WRT firmware. So I tried to SSH into the ...
2
votes
0answers
62 views

No delay between ssh login attempts

I recently had some problems I believe to be related to pam, but still for some reason there are no delay between login attempts. When searching around, people seem to only have the opposite problem: ...
2
votes
0answers
38 views

SSH - Unable to access local forward from another host

I have a VPS with 2 public IPs (assume 1.1.1.1 and 1.1.1.2) I am trying to do a local tunnel to my router on my VPS bound to the second IP, and then access it via another machine. I do the following ...
2
votes
0answers
23 views

Certain folders are always missing using Rsync to server

I have tried several different ways using rsync modules and ssh trying to pull my linux desktop from my freenas server and no matter how I do it, certain folders are always missing. I am trying to ...
2
votes
0answers
57 views

SSH freezes the whole computer when logging in

I am using a Debian wheezy mainly to play music and browse web as a shared computer. Problem is that all SSH connections freeze the computer for a moment when initiated. To be clear: all these SSH ...
2
votes
0answers
34 views

One-Way SSH Lag

I am on a LAN with two hosts connected to a router. One host connects to the router via an ethernet cable (host1), while the other connects to the router via WiFi (host2). host1 is running Arch Linux, ...
2
votes
0answers
344 views

sshfs mounts share in read-only mode

I need to mount a share using sshfs. When I mount it using sshfs directly, i.e. # sshfs martin@192.168.1.10:/home/data/ -o allow_other /mnt/data/ or # sshfs martin@192.168.1.10:/home/data/ -o ...
2
votes
0answers
183 views

How to change to a different user after SFTP login

The goal: Use local IDE (IntelliJ PHPStorm 9) to browse & edit remote files via SSH The obstacle: My user on the remote machine does not have permissions to read files, which are owned by ...
2
votes
0answers
77 views

Backup using find and ssh to off-site server

I'm sure this has been been answered in bits and pieces on many sites, but somehow I can't seem to get this (as a whole) to work reliably. Scenario: I have a server that I would like to do ...
2
votes
0answers
172 views

named pipe proxy over SSH

I am used to forwarding a remote service port on localhost using ssh like: ssh -L 2181:localhost:2182 user@server (forward remote host port 2182 to local port 2181) now, from the machine I ssh to, I ...
2
votes
0answers
112 views

Restrict SFTP users to different directories

How can I restrict some users/groups to some directories? I mean different users, different directories. What I have: Ubuntu 14. Experience with Ubuntu: Just started. What I have tried: I read ...
2
votes
0answers
123 views

Paste clipboard content without X

I'm sshing into ArchLinux machine from Ubuntu. I want to be able to copy some text from Ubuntu and paste it into a file in Archlinux from terminal. xclip doesn't work for me, because I'm unable to set ...