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

learn more… | top users | synonyms

0
votes
0answers
8 views

is iptables broken on my raspberry-pi? how to fix?

I am getting some person(s) trying to brute force my ssh, from multiple ip addresses (small sample) : May 22 19:50:02 rpi sshd[1272]: pam_unix(sshd:auth): authentication failure; logname= uid=0 ...
0
votes
2answers
35 views

How can I allow SSH and SMTP only using IPTables?

I've got a raspberry pi set up to send me periodic emails. As it's connected to the internet 24/7, I need IPTables set up properly. I want to allow incoming SSH and allow emails to send out on port ...
3
votes
4answers
73 views

How to browse a website as if I am in USA? [on hold]

I am in Taiwan right now and whenever I go to a website that I could browse in USA, it directly transfers me to the Asia site. There is no way to browse the USA version of the site, probably because ...
11
votes
4answers
488 views

How can I propagate my SSH pub key to a list of servers without having to type my password in over and over?

I was recently given username/password access to a list of servers and want to propagate my SSH public key to these servers, so that I can login more easily. So that it's clear: There is not any ...
0
votes
1answer
36 views

SSH: remote variable

I want to run a complex script via ssh #!/bin/sh ARRAY1=( server1s server123 server12 server14 server13 ) for i in ${ARRAY1[@]};do ssh $i " case \$HOSTNAME in server1.domain.com) echo try1 ...
0
votes
1answer
34 views

help with remote file find/scp

I have a set of files on a remote sftp which I need to download to a server every day. sftp uses ssh keys to authenticate, so I created a ssh key and added to the remote server authorized folder. I'm ...
0
votes
1answer
32 views

Windows to Linux (rsync and ssh) [on hold]

I'm trying to backup the folders in Windows Pictures to a remote Linux directory. This is what I have: rsync -av ssh /cygdrive/c/users/Owner/Pictures/ blah@192.168.1.10:/var/files/ImageSync/ I got ...
4
votes
3answers
91 views

Copy from remote server which doesn't have rsync

I need to recursively copy a folder from a Ubuntu remote server where I have ssh access. I don't want to follow symbolic links, nor to copy permissions/owner/group, because my client system (Ubuntu ...
1
vote
1answer
44 views

How SSH Tunneling is working

can someone explain how the following ssh tunneling is working ? ssh root@localhost -P 2222 -pw 1234 L 3300:remote_WIN_machine1:3389 this ssh command is running from Linux machine while the remote ...
0
votes
1answer
37 views

need to get the command information over ssh and the input from file

I am writing a script to get the command information of the remote machine usinf while and for loop. PFB the script. But the script ends by giving the single command information only. I have multiple ...
1
vote
0answers
15 views

Error running startx on CentOS via SSH

Whenever I attempt to run startx on a system I have SSHed into, I get the following output: xauth: creating new authority file /root/.serverauth.6604 X.Org X Server 1.15.0 Release Date: ...
1
vote
1answer
39 views

Fail2ban is not blocking IPs trying to access my server via ssh

I installed fail2ban with the default settings because there's a bunch of bots trying to log in as root to my server. I installed it but nothing has changed, I checked fail2ban jail IP list and ...
0
votes
2answers
38 views

Setting Up SSH. Just need some understanding

My goal is to build a LAMP server on my arch linux laptop. The main reason is for a web server. The other reason is to learn about how all this administration stuff works. My setup is a laptop with ...
1
vote
1answer
30 views

Tunnelling through multiple machines on Red Hat with varying users and keys

I'm trying to SSH tunnel hop to a Tomcat7 server where JMX was configured on port 9090. Essentially: localhost > hostB > hostC. In a terminal, from localhost to hostB: ssh -L ...
-3
votes
1answer
40 views

Help to run a script command from one server on another

I have a go daddy account and also a vps in germany. In my vps, i run a code script (we will call it codegen) when i run ./codegen i get my question of how many codes do i want to make and with that ...
-5
votes
2answers
63 views

open ssh server back

After I type # shutdown -h now from terminal, I can't access to the ssh remote server. (ssh root@10.101.6.240) How should I open back the ssh server?
3
votes
2answers
68 views

shell scripting remote commands through ssh

I'm trying to create a shell script which will execute some commands which I require frequently. I made the ssh login to skip the password prompt using a public/private key pair. and after some ...
3
votes
1answer
35 views

ssh message after login but before password

Is it possible to make a message appear for each user after he entered his login but before he needs to enter his password? I looked at motd and issue files, but I could not set it up, how I want. ...
1
vote
1answer
16 views

Linux LiveCD Server with FTP & SSH Services

Could anyone please suggest me a LiveCD (Linux Based) with SSH & FTP Services. Basically I don't want to install anything on my laptop so I just want to boot LiveCD with FTP/SSH services so I can ...
1
vote
1answer
21 views

Open Java programs of a linux machine on Windows with SSH?

I usually use laptop (which has Windows) to ssh to my Linux server and run stuff on it (e.g. Intellij, MATLAB). I wonder if there anyway to open Java programs (again, like Intellij) of a remote ...
1
vote
0answers
14 views

Lsyncd not working on Mac 10.9

I'm attempting to use lsyncd to automatically move files to my local development server. My host is OSX 10.9. SSH on the server works. I can connect using ssh from the host. I am using an SSH key to ...
1
vote
2answers
49 views

use SFTP in shell script

I have written a shell script to get the files from another UNIX server. But files are not being copied. Could someone help me what I am doing wrong. sftp username@server:$path get ubpbilp* ./ mget ...
0
votes
2answers
92 views

Can a command be executed without a shell?

I am developing a binary executable program command to execute programs and return the output into a text field. The parameters to the command involve the command itself as it would be typed on the ...
0
votes
2answers
50 views

Can not execute command with root in a remote Linux host

I try to migrate shell code to Python fabric code. The issue I meets is that Python can not execute command with root in a remote Linux host. Could anyone meet this issue and figure it out? I am very ...
0
votes
0answers
42 views

SSH: Permission denied, please try again

I need to connect to a server and don't know whats going on: me@pc:~$ ssh -v server OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /home/me/.ssh/config debug1: ...
2
votes
2answers
55 views

Passwordless login only works using directly invoked sshd on server

I've been through as many of the bugfixes as I can find for the classic ssh key issue : I've set up my public and private keys "correctly" but passwordless login still doesn't work. The details : ...
0
votes
1answer
18 views

oddjob_mkhomedir doesn't run when logging in via SSH with Kerberos

I currently have a server which has Kerberos/SSSD/Samba to authenticate to Windows 2012 AD. In /etc/pam.d/system-auth oddjob_mkhomedir is set as below: session optional ...
2
votes
1answer
31 views

ssh-copy-id: why is the end of my public key different on my local vs remote?

Usually in the past I've always manually copied over my SSH public key to the remotes where necessary. I'm on a Mac and I finally decided to start using ssh-copy-id to make my life simpler, so I just ...
1
vote
1answer
27 views

Restrict ssh access per user based on conditions

Is there a way to restrict a user to only use ssh to connect via SFTP, but disallow that same user to login to a secure shell terminal? I only want the user to have the ability to connect by an SFTP ...
2
votes
1answer
44 views

Jumping ssh hosts without netcat

I have access to an intermediate server to which I can connect with ssh. From there I can connect to other servers: A→B→C, where A is my laptop, B is an intermediate server accepting connections from ...
0
votes
2answers
35 views

Execute script after outbound ssh

I want to execute a script after outbound ssh. I have two server (A) and (B), and computer (C) (C) can connect to (A) by SSH but can't connect to (B) and (A) can connect to (B) by SSH But (C) can ...
24
votes
4answers
1k views

How do I remotely edit files via ssh?

I have to edit some files placed on some server I could reach via ssh. I would prefer to edit these files in customized vim on my workstation (I have not rights to change vim settings on remote ...
3
votes
1answer
103 views

Deny SSH for a particular user from external network

So I have a server on my local network running an OpenSSH server. The server is configured to allow SSH from external networks, which is intended. However, I want to create one specific user ...
1
vote
1answer
21 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 ...
0
votes
0answers
29 views

Backup server with tar, encrypt and directly transfer the result, AFTER BUFFERING IT

So I've been investigative how to make full backups with tar, and I found that tar is a good tool if the backup is to be made once, and if the server has enough disk space to handle the output file. ...
0
votes
0answers
19 views

Accessing forwarded port via SSL/TLS

I have a Raspberry Pi that sets up an SSH tunnel with my VPS so that I can access several things remotely. My Pi forwards its local port 80 to my VPS's port 3180, so I can access it via ...
0
votes
1answer
25 views

Syntax Error while running command from another hosts [duplicate]

I run a command to fetch server uptime as below [root@localhosts ~]# printf "`uname -n` `uptime| awk -F " " {'print $3,$4'}`\n" localhosts 75 days, Now when I run same command from another ...
1
vote
1answer
45 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 ...
12
votes
4answers
1k views

How can I keep my SSH sessions from freezing?

I have ServerAliveInterval and in case of few machines also ClientAliveInterval set to 540 in SSH client/server configuration files (I suppose setting it to more than that would not be a good idea). I ...
0
votes
0answers
22 views

Change external ip to be the one of a server?

I can ssh from my computer (Ubuntu 14.04) to a RedHat server. I wonder if I can browse webpages in Google Chrome or Firefox using the external IP address of the server? Running firefox on the server ...
1
vote
2answers
28 views

Does `ssh -D` proxy DNS request?

Is DNS resolution tunneled to the other end when I use a SOCKS proxy created with ssh -D? I have read the manual, searched the Internet, and found no documentation relevant.
0
votes
1answer
29 views

SSH key works on NIS server, fails on NIS client

I am trying to set up public key access to a couple of machines that I have a user account on. What I did: I used ssh-keygen to generate a key pair (without a passphrase) on my personal computer ...
0
votes
0answers
34 views

SSH Public key fails when using Reverse SSH Shell

I have a machine behind a NAT, which I would like to access via ssh. Lets call this machine A. I have machine B, which is publicly reachable, which I would like to route my ssh connections. I have ...
3
votes
3answers
62 views

How to remotely connect to a computer via ssh which is behind a wireless router? [closed]

At present, I'm using the wireless router TP-Link WR740N. I have tried the following two solutions in order to connect to my host computer, which is behind the wireless router: Use the "virtual ...
1
vote
1answer
97 views

Is there a canonical method to restrict ssh access to certain IP addresses in Unix?

I checked man pages related to ssh on OS X and other systems and tried using hosts.allow and hosts.deny files as per this post, and sshd_config to no avail. $ cat /etc/hosts.allow sshd: ...
1
vote
0answers
30 views

Backing up VPS via SSH/SFTP

I'm going to perform some maintenance on my VPS (Ubuntu Server 15.04), and I would like to back up some files before doing so. The problem is that some of these files are under other users' home ...
0
votes
1answer
59 views

“Invalid MIT-MAGIC-COOKIE-1 key” when trying to run program remotely

I am attempting to run an application (ParaView) in client-server mode with its graphics rendering being done on the remote (server) end. I am using SSH as my means of connecting to the server, but do ...
0
votes
2answers
37 views

How to make the script automated to take password on its own?

I have a script that is doing sftp some files from one server to another, like inside the script script.ksh I have the below lines; sftp user@ip_address << EOF cd path put file1 bye EOF When ...
2
votes
1answer
29 views

ssh port forwarding without logging in

I am forwarding a port of a remote server to my local mac as follows: ssh -L 15672:localhost:15672 me@example.com When I do this in a shell, I am also logged into example.com. Yet I would like the ...
1
vote
3answers
70 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, ...