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

learn more… | top users | synonyms

1
vote
1answer
195 views

SSH on port 443 with SSLH

I have a problem with SSH and HTTPS on port 443. I have installed SSLH on my VirtualServer an want to connect via Port 443 to SSH and also use 443 for the HTTPS server. With my windows computer it ...
0
votes
1answer
164 views

UDP Port Fowarding: channel 2: open failed: connect failed: Connection refused

My situation is as follows: I have currently trying to have a program between two Hosts send UDP packets over a SSH Tunnel. There is also a host intermediate between the two hosts. Note Server01 ...
1
vote
1answer
295 views

scp can't upload/download files even though ssh works

I can connect to my server using ssh dziura and it works as it should, but I have problems copying any files to/from the server using rsync/scp/sftp. Scp: $ scp dziura:/home/kossak/file_remote.txt . ...
1
vote
3answers
167 views

sshd authentication times

I want to know where I can increase the number of times I can enter the password when I try to login via ssh? I am using CentOS 6.7 and I have just 3 times to enter the password before I got this ...
2
votes
1answer
48 views

Accessing Time Capsule Drive from SSH?

I have an Apple Airport Extreme Time Capsule. I'd like to use it to store information for data mining operations. I've set up OS X server, and set up user accounts such that users can log into a Mac ...
0
votes
1answer
81 views

How do I get a Debian server to output “screen -ls” on ssh login?

I read that I can add a line like this to /etc/ssh/sshd_config: ForceCommand /etc/ssh/loginscript.sh The "loginscript.sh" is executable and only does screen -ls until now. I suppose the problem is, ...
2
votes
3answers
210 views

ssh into a server that has a broken bash install

I think I broke the installation of ncurses on my Arch Linux VPS. Now I can't login with SSH, I get this error: $ ssh me@xyz.com Last login: Mon Oct 26 08:56:59 2015 from 0.0.0.0 -bash: error while ...
1
vote
0answers
29 views

Having troubles connecting through tunnel to a server

Since yesterday I'm failing connection to my server partition on my school server. To access to my server I need to pass through a tunnel that require a password and connect me to the server. This ...
1
vote
1answer
390 views

nmap doesn't appear to list all open ports

My rental Linux server doesn't respond to nmap the way I thought it would. When I run nmap it shows three open ports: 80, 443 and 8080. However, I know ports 2083, 22 and 2222 should all be open, as ...
3
votes
1answer
113 views

ssh public key auth: first login still asks for a password

I have set up public key authentication with ssh, but what happens, is that when I first log in, it still asks for a password, any subsequent login (while keeping the first login alive), does not ask ...
0
votes
1answer
71 views

Auto-inputing ssh password in shell scripts on Linux [duplicate]

I can use ssh command and provide password and connect to another server. But I need to pass password in the shell script. how?
0
votes
1answer
75 views

ssh pass multiple values

I want to open some ports i do for i in centos7{3..4};do ssh -T $i "for ir in 53 80 443 3000 3306 5910-5930 5432 8140 8443 10090-10100 20 21;do firewall-cmd --permanent --zone=public ...
1
vote
1answer
140 views

SSH: shell opened in IP namespace

I'm trying to force users logging in through SSH to have a shell inside IP namespace. I've tried replacing the shell in /etc/passwd with something like ip netns exec sshns /bin/bash but it didn't ...
2
votes
1answer
60 views

How to make a copy of a file and place it in the same directory copied from?

For instance let's say that my current directory is Carton and I'm trying to; make a copy of file spyware inside the directory RYU, called spyware.exe and place it in the RYU directory. What would be ...
0
votes
1answer
183 views

Public key not working… but it matches the host key

I want to connect with my raspberry pi from my mac, I can do it from a mac with 10.10, I copied the public keys but I get this trying to login from another mac: OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec ...
1
vote
2answers
121 views

Looking for rsync+ssh-based method as alternative to Dropbox

I want to set up a personal (i.e. one user) Dropbox alternative using rsync, to keep some directories synchronized over several Unix hosts. Since only one user (namely, me) will be changing the ...
1
vote
1answer
580 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 ...
4
votes
1answer
588 views

What does port forwarding mean in “SSH port forwarding”?

Wikipedia says In computer networking, port forwarding or port mapping is an application of network address translation (NAT) that redirects a communication request from one address and port ...
0
votes
1answer
156 views

SSH known_hosts ignored on one machine

I am experience strange behavior using ssh with a jump host. While the setup works on machine A (cygwin, OpenSSH_7.1p1, OpenSSL 1.0.2d 9 Jul 2015) it does not work on machine B (OpenSSH_6.7p1 ...
0
votes
2answers
224 views

how to redirect output of ssh to a file

I want to make ssh connection to my server but I don't want to enter password. I want to save output to a file like so: $ ssh root@x.x.x.x -p 22 1>output 2>&1 but when I run it the output ...
2
votes
2answers
84 views

How to get information about files being copied to my machine by remote rsync command?

I am rsyncing a directory from machine B to machine A. rsync command is run on machine B. On machine A, what kind of information can I get about this rsync process (progress/amount of data downloaded ...
2
votes
1answer
584 views

ssh into a server which is connected to a VPN service

I have a virtual private server, which I would like to run a web server while my server is connected to a VPN service When the VPN connection to my provider is not up, I can do anything I want with ...
1
vote
1answer
111 views

HPC ssh “connection closed by remote host”

My HPC installed LSF job scheduler. I logon the login node (I use xshell) and using interactive job submission command bsub -Is csh Thus, I entered one of the HPC node, for example c01 node Then ...
1
vote
0answers
75 views

pam sshd: run as root but get user ip

I am trying to make a little script run by pam sshd session optional pam_exec.so /foo/myscript that would want to check the ip of the connecting user and if already in my database, do nothing, if ...
4
votes
2answers
642 views

ssh, sudo, then download?

I got a server A, it has three users on it. I need to download a folder's 70 gigs of content into server B. The server only has 90 gigs of space, so compressing, then transferring isn't an option. In ...
1
vote
0answers
82 views

ssh command runs manually but not in cron [closed]

Below script is working fine when ran manually but failing for the servers usl20016089 and usl20016087 when scheduled in cron with this error: Request exec channel error: Authentication failed Here ...
0
votes
1answer
344 views

I can't copy remote file using scp but I can log in using ssh

I've a NAS DNS-320L from dlink running the original firmware + fun_plug which enable NAS to receive ssh connections. I can use the user ricardo to log into the server by ssh. [ricardo@crudo:~]$ ssh ...
0
votes
1answer
66 views

Automatically initiate an outbound SSH connection on a server when a client connects

How can I automatically initiate an outbound SSH connection on a server when an internal client connects to that server on a specific port, for any given service, from a given IP range? Note that the ...
0
votes
0answers
67 views

Raspberry Pi OctoPrint server forwarding to Ubuntu VPS

I have a Raspberry Pi web server via OctoPrint which I have opened ports for to my home router so I can control my printer from anywhere. My biggest problem is my ISP keeps changing my IP address ...
0
votes
2answers
33 views

Is there a method to make Multipart or Virtual Files?

Is there a method of creating a symbolic file that refers to the contents of a directory? So for example, calling: cat all_keys would give the same output as: cat keys/key1+keys/key2+etc... I've ...
1
vote
1answer
142 views

set umask before every non login non interactive shell command

I'm using PHP script and to connect to ssh server. It executes one command and exits. Connection is made to non interactive and non login shell. Because of that it does not load .bashrc or ...
0
votes
0answers
78 views

Logged in as root server but terminal not showing #

when I log into Centos 6.5 server with root details, It is not showing # in my terminal, when I do sudo it says "sudo: /etc/sudoers.d is world writable" So i checked on google and used answers ...
1
vote
1answer
187 views

storing ssh remote executed command output to variable is blocking. connection not ending?

I'm not quite sure what the issue is. I'm on Kali Linux 2.0 right now, fresh install. The following worked on Ubuntu 14.04 but it's not working anymore (maybe I accidentally changed it?). It looks ...
4
votes
1answer
186 views

Is there a downside to enabling X11 forwarding in ssh?

For some remote work, I sometimes use X11 forwarding on ssh connections, but usually don't. But, instead remebering to use the -X flag on my ssh connection, I can also set ForwardX11 yes to enable it ...
1
vote
0answers
29 views

SSH Tasks to Different Remotes with Control over them

I need to ssh different runs of a program to different compute nodes, namely: ssh compute-1 'cd dir; ./program input1;' ssh compute-2 'cd dir; ./program input2;' ssh compute-3 ... I also need to: ...
1
vote
1answer
167 views

Which processes do the ports (as communication connection endpoints) belong to in SSH port forwarding?

(1) For remote forwarding: -R [bind_address:]port:host:hostport Specifies that the given port on the remote (server) host is to be forwarded to the given host and port on the local side. ...
1
vote
1answer
50 views

Gracefully Handle Losing Connection Exported X Display

I am exporting a several GUIs across a network using X11, I start the GUIs by SSHing into the server with the -X option and running the executable. If the remote machine is abruptly shutdown or the ...
0
votes
0answers
17 views

Is this a workable way to do the same thing as tethering on Android?

My laptop uses Ubuntu 14.04. My phone with Android 4.4.2 is limited without tethering by the mobile carrier. I have come up a thought as a workaround: find a router which can create a WiFi LAN (but ...
0
votes
0answers
245 views

sshfs connection breaks, and cannot be re-established (“Stopping User Manager for UID 65534”)

A Raspberry Pi device connect to my NAS via sshfs, and saves a large backup on it. After some time, the sshfs connection breaks, resulting in a broken backup. At the raspberry system, the sshfs ...
2
votes
0answers
94 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
1answer
264 views

Extract hostnames from non-hashed ssh known_hosts

I would like to extract hostnames/ips from .ssh/known_hosts file in all (known) format conditions: Hostname only hostname pubkey Hostname with ip: hostname,1.1.1.1 pubkey Hostname with ip that is ...
0
votes
1answer
42 views

How to upload files from ssh to FTP?

I have a digitalocean account, & i have ssh access to one of the droplet i created . I want to transfer a large file from this droplet ( server ) to my hostgator account ( i have a FTP enabled on ...
1
vote
1answer
265 views

How to pass environment variables to a new ssh-initiated login session?

Suppose that some variable FOO is defined (and export-ed) in the current environment. Let me call this environment E0. Now, I log into some other Unix system using ssh. % ssh ...
0
votes
2answers
45 views

SSH Tunnel with key on first server

Im trying to tunnel to DestinationHost through HopHost with ssh -o ProxyCommand='ssh HopHostUser@HopHost nc -w 10 %h %p' DestinationHost First, I get to authenticate towards HopHost as HopHostUser ...
2
votes
1answer
42 views

SHH Tunneling only accepted on some ports

I'm working with Server running Ubuntu Server 14.04. I use Plink to request some reverse tunnels from a remote computer to the server. For some ports that works just fine, but for most ports it seems ...
0
votes
0answers
19 views

Windows->RHEL->RHEL X11 Forwarding?

I know this question might have been asked a lot but couldn't find anything that worked. From a windows machine 'A' I can only SSH into Linux server 'B' from where I can SSH into another Linux server ...
-2
votes
1answer
52 views

SSH thorough 3 systems to transfer the Data

We have 3 Systems here, I need to transfer data from the Data Server to the test vm the only way is through the jump-host. this daily process take long time. How do I automate this thing for daily ...
3
votes
0answers
66 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 ...
7
votes
2answers
5k views

Can't login to a remote machine with key

I used to login to a remote machine( I have to root of this machine) using key. Both my local machine and remote machine is in f23. From last few days, I can't login to this machine using key. It is ...
2
votes
1answer
176 views

SFTP Dual Factor Authentication

My Issue I am trying to automate a file fetch from an external [SFTP] server. The server is using 2-factor authentication. First, it needs a public-private key pairing established [This has already ...