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

learn more… | top users | synonyms

1
vote
1answer
67 views

How to connect to device via SSH over direct ethernet connection

I have a device that I need to connect to over SSH. The device is connected to my workstation via a direct ethernet connection. I'm attempting to assign the connected device an IP address somehow that ...
1
vote
2answers
48 views

Enable/Disable X on an established SSH connection

So at my job I SSH from my CentOS machine to other local CentOS machines. We use an application that runs in both X11 and terminal. Some features are available exclusively in terminal and other ...
1
vote
1answer
32 views

Using shell code for LocalForward in ssh config file

I have this configuration in my ssh config file, Host *+* ProxyCommand ssh $(echo %h | sed -e 's/+[^+]*$//;s/\([^+=]*\)=\([^+]*\)$/\2 -l \1/; s/^\([^+:]*\):\([0-9]*\)+/-p \2 \1+/') -W $(echo %h | ...
0
votes
0answers
16 views

Can't connect to Amazon Ec2 via SSH

I just installed a cloud VPS on Amazon Ec2 today. I can connect to the VPS via SSH port 22 but I unable to connect into it again after changed the SSH port to 35000. I've allowed TCP - 35000 via ...
3
votes
1answer
39 views

how to set globstar for noninteractive shells

I would like to execute commands noninteractively on a remote server that use the ** globstar option. However, globstar is not set by default on the remote, and bash doesn't source any files in ...
0
votes
0answers
30 views

SSH Connectivity Issue on AWS EC2 after trying to mod fstab and checking sshd_config

I cannot for the life of me connect back into an EC2 instance based on Amazon Linux AMI 2016.03.3 (HVM). After initially creating the server, logging in and installing docker, jenkins etc... I had ...
3
votes
3answers
278 views

How to print a specific column with awk on a remote ssh session?

When using df -h | grep /dev/root | awk '{print $5}' I get the usage of my SD Card in my Pi: 78% But when I use /usr/bin/ssh -i /path/to/key user@server "df -h | grep /dev/root | awk '{print $5}'" ...
7
votes
1answer
48 views

Current SSH connection properties (cipher, auth type, timeout, etc)

After a connection is established with SSH, how we can get the current connection properties ? Is there a way to know what cipher(s) is being used ? Properties of the authentication ? Protocol ...
0
votes
0answers
20 views

Clone git repo via ssh'ing from another pc

How can I clone git repos in a non-interactive way as follows: for h in server1 server2; do ssh $h "git clone git@gitlab.com:username/reponame.git" done When I interactively clone the ...
2
votes
0answers
28 views

Enable tty console login while “A stop job is running” (stop running forever, preventing shutdown)

A message like this one is often shown on shutdown: "A stop job is running ..." (nfs mount) This apparently even happens when the NFS server did not go away. But even if the connection to the NFS ...
1
vote
1answer
56 views

SSH Not Responding

Today when I tried to ssh into a remote server with my own credentials, I got no response at all, the command just hanged there after I pressed enter. I can ping the server and I also tried nc -v -w ...
0
votes
1answer
62 views

How could I know my server's operating system? [duplicate]

I’m connected to my shared hosting server via ssh, and all I know is that it’s under Linux. I tried commands like: cat /etc/issue/ and lsb_release -a but got: $ cat /etc/issue/ No such file or ...
1
vote
0answers
37 views

Is it possible to open an ssh session and use it as a tty? [closed]

I am trying to send some commands to modify some configs in a cisco router, however, the process must be interactive. For some reasons, I'm not allowed to use tools like expect, so I thought I could ...
0
votes
2answers
43 views

Set startup folder for SFTP to be other than /home/username is throwing me permission issues

I just installed a CentOS-based to serve as an SFTP server. I need all incoming files to go /mnt/inbound/ folder, so I want to ensure that every user from this host that logs in via SFTP gets /mnt/...
0
votes
1answer
49 views

Single source for both .ssh/config and /etc/hosts

I'm looking for a DRY solution that would allow me both ssh server-alias and ping server-alias I know the former is reading .ssh/config, and the latter /etc/hosts, but I'd rather not repeat the ...
-1
votes
1answer
42 views

ssh login does't work using key without password

It seems that id_dsa doesn't exist and it tries id_ecdsa, but it's there and I tried to regenerate it several times and still doesn't work. any one has the same issue and solved? or any one know how ...
1
vote
2answers
19 views

How can I know which specific private key is used for 1 ssh connection?

I cannot find from my linux box in which file the private key is stored. In below testing, my findings is , there is no ~/.ssh.config file, nor ~/.ssh/id_dsa or equivalent. From the testing result, ...
2
votes
0answers
51 views

Passwordless SSH access not working with rejected message

I setup SSH passwordless access between two Linux hosts. But passwordless access is not working. Authentication is cancelled with a rejected message as shown below su - wsync -bash-4.1$ ssh node-...
0
votes
0answers
32 views

How to fix system after wrong permissions? [duplicate]

I changed permissions on / by mistake using chmod -R 755 /* instead of ./* after doing sudo -s. I stopped the process in the middle of it after realizing what was going on. But it was too late. Now ...
2
votes
1answer
42 views

redirect output of command to /dev/null

I run the following line from my bash script in order to run the script /usr/run.pl on remote machines xargs -P "$numprocs" -I '{}' -n 1 -- perl -e 'alarm shift; exec @ARGV' -- "$timeout" ssh -...
0
votes
0answers
27 views

SSH using script not working , but normal ssh working fine

[fm@serv1 new_dir]$ . ./env_call.env [fm@serv1 new_dir]$ ssh ${serv2} "/tmp/new_dir/backup.sh ${env}" Permission denied, please try again. Permission denied, please try again. Permission ...
0
votes
1answer
46 views

Expect Rsync with Double quotes

Below is my code: #!/usr/bin/expect -f set timeout -1 spawn rsync -arvz -e 'ssh -p 1690' --protect-args --progress /home/pappu/ 'backup@xx.xx.xx.xx:/volume1/56 - Backup Server/pappu' expect "password:...
0
votes
0answers
23 views

Create user who can only ssh and reboot machine [duplicate]

I have a problem when I want to create user for SSH and rebooting the machine only. What I did is I just created a normal user. But normal user can access other commands like reboot, vim, ps, etc. I ...
1
vote
0answers
71 views

Why is it not possible to connect to my server using RSA from an Ubuntu machine?

I tried to connect to my server using ssh xxxx@xxxxxxx.xxx The result was: Unable to negotiate with xxx.xxx.xxx.xxx port 22: no matching host key type found. Their offer: ssh-dss Then I ran ssh ...
1
vote
0answers
49 views

Garbage characters when using serial connection over SSH connection with minicom/screen

I have a serial connection made with /dev/ttyUSB0 locally from my laptop to a cisco lab router and using minicom/putty/screen all work fine locally (hardware control: on, software control: off, 9600 ...
0
votes
0answers
43 views

key load error on trying to ssh to server [on hold]

I get the following error when trying to ssh into a server running Mac OS X. The client is also running Mac OS X. ssh -v server.lmd.edu OpenSSH_6.9p1, LibreSSL 2.1.8 debug1: Reading configuration ...
1
vote
0answers
57 views

How to send sudo password over pipe? [duplicate]

I need to replace existing sshd config on the remote PC and restart sshd, so I try to use this: cat /sshd_cfg | ssh user@192.168.0.47 "cat > /etc/ssh/sshd_config && service sshd restart" ...
0
votes
1answer
62 views

Script wont return when executed via SSH

I am calling a script via ssh client like this: ssh root@host "su - oracle -c '~/bin/weblogic start'" The ~/bin/weblogic is a bash script that actually starts the web server in the background and ...
2
votes
0answers
58 views

password fails over ssh, works locally

This weekend I really dove into unix and got a Arch installed on an old computer and got it to serve my website. So I'm a bit of a noob. Today I went to copy a database file from my Mac laptop to my ...
6
votes
1answer
93 views

What does '?' represent under TTY

If you run ps in your terminal, you may see something like the following: What is ?? I'm ssh'ing into a Linux server, so I assume that it's just the sshd as it says under CMD, but I'm curious what ...
0
votes
2answers
39 views

SCP command keeps asking password

I've been struggling for days with this now and can't find what I'm doing wrong. I've got a website on a VPS server. Every night I make a backup of the database. It gets stored on my VPS server. I ...
2
votes
0answers
72 views

ssh connection to OSMC fails after giving the correct password

I have a freshly setup Raspberry Pi 3 with OSMC; I can't login via ssh. I can open a shell when using my wireless keyboard, sudo -s works, and AFAICS, WiFi connection is fully functional, including ...
0
votes
1answer
31 views

SSH DNS lookup on local IP addresses [duplicate]

As I have come to understand, SSH always goes through the process of reverse DNS lookups whether you are connecting to user@example.com or a local server calleduser@192.168.0.56. I do not know, ...
0
votes
1answer
49 views

SSH takes too long to ask for password

I've seen many other questions on this subject but none seem to actually solve my problem. Like any other day, I connect to my LOCAL Raspberry Pi server from my client machine at 192.168.0.5 with ssh ...
0
votes
1answer
28 views

How can I forward multiple ports in the SSH configuration with LocalForward?

I want to forward multiple ports. So far my configuration looks like this: Host myhost Hostname 123.123.123.123 IdentityFile ~/.ssh/id_myhost LocalForward 8811 localhost:8811 ...
1
vote
0answers
24 views

Shell Hangs After Running cd, ls, vim over ssh

I'm logging onto a computer cluster over ssh. The problem is I can't do much more than that. Whenever I run things, eg: vim, cd, ls the cursor just hangs there and nothing else happens. I've heard ...
-2
votes
1answer
53 views

Gather data from 100 AWS servers [closed]

I have 100 servers running on AWS. I need to easily get how much data each user on the remote systems are using and output it to a text file. How could I best accomplish this?
-2
votes
1answer
27 views

How do I ssh my Mac from another server? [duplicate]

I want to ssh my iMac at home from my MacBook when I'm away, but I can't figure out how to ssh when I'm not on the same local network. I have configured my iMac to accept ssh through the "Remote login"...
1
vote
2answers
37 views

Autocomplete hostnames when using SSH within history file

I'm looking for a feature that help me to autocomplete the servers I "sshed" in sometime and are in my .bash_history file without messing with known_hosts file or /etc/bash_completition, just grab ...
0
votes
0answers
56 views

running iperf over ssh

I'm trying to benchmark the network connection between 2 ubuntu servers on which I don't have root privileges. I did manage to download and start iperf-2.0.9 on both boxes. My problem is I can't ...
3
votes
0answers
45 views

SSH with chroot and only working “sftp”, “rsync” (both)?

I have two users and one shared folder in my Ubuntu server: User writer, which has write access to /var/shared. It's an application regularly making file changes in this folder from remote, with SSH ...
3
votes
0answers
54 views

openSSH login slow for one user but not others

I'm running a server at home with Ubuntu 14.04. I have two users on the machine, say user1 and user2, each able to ssh into the box. While user1 logs in very quickly, user2 takes about 20 seconds to ...
1
vote
1answer
30 views

parallel file copy using tee unexpectedly slow

we're copying a large zfs snapshot (zfs send) from site-1 to site-2. site-1 and site-2 are remote, and are connected via IPsec (read: slow) on site-2, we need the data on two different zfs servers. ...
0
votes
0answers
118 views

successful ssh login but no prompt

I'm going to connect to my university cluster with ssh. Login is successful but it doesn't show the prompt line, it just shows a blinking coursor. I could connect to ssh before and it was working fine,...
0
votes
1answer
20 views

Unable to download data using curl for loop

I'm trying to download data from the following link export ICTP_DATASITE='http://clima-dods.ictp.it/data/Data/RegCM_Data/EIN15/1990/' These are the codes : for type in "air hgt rhum uwnd vwnd" do ...
0
votes
3answers
41 views

How can I create a virtual serial port that relays data over ssh?

I have a serial port on a remote linux box which I can access over ssh. I would like to create a file (not a real file, maybe a device file or unix domain socket?) which when written to writes to a ...
2
votes
1answer
26 views

Difference in ssh/scp host resolving and network reachability

I've got a virtual machine running on KVM on my localhost. I can ssh into it without problems using hostname (entered in /etc/hosts) or the IP address. With: scp root@remote:/somefile root@localvm:/...
0
votes
0answers
20 views

Echo variables sshpass [duplicate]

I want to do sshpass to a server to get lots of information from it. But as some logic will be involved, I tried to create a variable inside sshpass and echo to the client (first test). It is not ...
0
votes
1answer
107 views

SSH Tunnel “channel x: open failed: connect failed: Connection timed out”

I've Googled and searched far and wide for some sort of "solution" to this problem; however, the best answer I got is "There's nothing that can be done." Of course, that's unsatisfying, so here goes: ...
0
votes
1answer
47 views

Can't SSH (connection refused) [closed]

I'm trying to set up a headless machine running manjaro. I install and enable openssh, and can ssh localhost, but can't ssh by another machine. Plus, if I modify the /etc/ssh/sshd_config I cannot even ...