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

learn more… | top users | synonyms

0
votes
1answer
41 views

ServerAliveInterval and connection reset

If I run: sftp -oServerAliveInterval=10 server-2 Connection is established. But after increasing (decreasing) the value from 10 to 1: sftp -oServerAliveInterval=1 server-2 I am unable to ...
1
vote
0answers
57 views

Freeradius PAM create user and home on login

At this moment i have installed freeradius and PAM radius properly. When i create an account on the system and set a password in /etc/raddb/users.conf the user can login. Sudo also works great with ...
0
votes
1answer
35 views

What's the difference between X11 forwarding with `ssh -X hostname and xhost +hostname; ssh hostname`?

In both the cases, I am able to connect to X11. What's the difference? And is xhost +hostname permanent, even after the base terminal is closed?
1
vote
1answer
50 views

How to write a file a file via ssh

I want to write a file in the Machine B under /home/test whose permissions are root:root and rwxr-xr-x. I have an account on the Machine B, named testUser. When logged to the Machine B with ...
0
votes
1answer
27 views

No paths getting set on login - bash not loading correctly?

I don't know if this is because of virtualenv, but I ran the virtualenv command to set up a tensorflow environment. Now no paths get loaded at all. Nothing works. To do even basic commands (such as ...
0
votes
0answers
28 views

Executing a script remotely on the same network

So we had this group assignment to create a simple script named trace_name1, that just echos "Hello this is machine xxxxxxxxxxx" where the Xs is the machine name. The objective of this assignment is ...
1
vote
1answer
29 views

Silent MySQL Server installation

I want to install a mysql-server on a Raspberry Pi (Debian) using a SSH-connection and a bash script, which contains the installation commands. The point is, that the installation need to be done ...
0
votes
0answers
40 views

rsync fails when ssh can't open /dev/tty

I've got a script that needs to rsync some files to a remote machine. The rsync command looks like this: rsync -avz -e 'ssh -vv -o IdentitiesOnly=yes -i /data/credentials/rsync2.key' \ ...
0
votes
0answers
34 views

Password problem when trying to access a LINUX VM

I'm a MAC OS X (El Capitan) user who's currently trying to access a LINUX VM set up by IBM for class. I have downloaded and paired a .ppk file in order to access it (a real pain due to my OS), but for ...
0
votes
2answers
68 views

First line missing in concatenation of SSH output [closed]

I am trying to concatenate two strings in bash script but I am not able to get the expected result, USERNAME="ubuntu" MASTER="some IP" KEYFILE="/Path/to/keyfile.pem" STR1=`sudo ssh -q -t -o ...
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 ...
1
vote
0answers
98 views

Cannot connect via ssh to server with global IP address

I have the no-ip service running on my raspberry pi, it updates the DNS (no-ip) whenever there is a change to it's IP address. I have enabled port forwarding on my router (Asus rt-n66u) ports 22 ...
0
votes
2answers
144 views

Permission denied after changing password (password is correct)

I'm currently trying to configure a system where the initial install was done by someone else. I could ssh into the box, and while on it, added some groups to me account and changed my password (I ...
2
votes
2answers
61 views

How to find out the reason why ssh processes are hanging?

When I run command like iostat -dkx 2 2 via ssh, I get the expected result, but the processes on the local computer are saying alive in status "interruptible sleep". Why is this happening? Is there a ...
3
votes
1answer
46 views

Can I build a Docker container from Dockerfile in an interactive way with allocation of some pseudo TTY?

I build container from below Dockerfile: FROM ubuntu:14.04 ... RUN apt-get update && apt-get install -y vim #RUN ssh-keygen -f /root/.ssh/id_rsa -N strongpass123$%^ RUN ssh-keygen -f ...
3
votes
1answer
61 views

Permission denied error without ssh connection

I have an Ubuntu 12.04 server which runs a python application. The application is started manually in tmux or automatically when the server starts. Application processes http requests from android ...
3
votes
2answers
45 views

Terminal allocation breaks files while using ssh for transfer

I used ssh to untar a remote file using: ssh host "cat file.tgz" | tar xf - This works perfectly fine. However I noticed while playing with forced commands, that pty-allocation changes the output ...
0
votes
2answers
43 views

Allow null password for file transfer from Sunsolaris machine to linux mchine?

I m trying to pull a file from a Solaris server to my Linux server and I did it successfully by using scp.I want to run this below command as a cronjob, How can I save password for this automation ...
0
votes
1answer
46 views

Cannot setup password less ssh on local host

I followed all the steps given in the following answer - 1. ssh-keygen -t rsa Press enter for each line 2. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys 3. chmod og-wx ...
3
votes
2answers
54 views

Ways to optimize performance in pipelines over network (RSH and SSH)

Consider a data transfer over a pipeline network in legacy systems with remote shell (RSH), like: rsh host -l user tar -cf - /home/dir \| compress | uncompress | tar -xvf - and this one in 'modern' ...
1
vote
0answers
84 views

ssh-ing to remote machine connects me back to local machine?

I have two computers: my laptop, vagrant, and my desktop tower, frontier. My username for both is joseph. I can ssh just fine from frontier to vagrant, but I have never been able to do it the other ...
0
votes
0answers
21 views

SSH from a docker container using OS X configs and credentials

I need to set up a Docker container so its users can ssh from it to a third party host, transparently using the configuration and credentials from an OS X workstation that is host to the Docker host ...
1
vote
0answers
37 views

Equivalent autossh command?

I am using the following command to setup an SSH tunnel to a remote server. I am using Ubuntu 15.10, and the remote server is running Ubuntu 14.04.3. ssh -N -f -L localhost:7154:localhost:7154 ...
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
1answer
64 views

kill user who is idle for more than 3 hours

I have a user who logs in via sftp but he opens a lot of sessions and keep them opened. This will make ssh and sftp very slow for all other users. I thought about using ClientAliveInterval number ...
0
votes
0answers
30 views

sshuttle crashes after logging into the server

Every time I try to start sshuttle it crashes after I login to the server. Here are the output I get (I cut some parts): mattia@Xubuntu-HP-Mattia:~$ sshuttle -r user@server.xyz:22001 0/0 [local ...
0
votes
0answers
50 views

debian 8 cinnamon file manager ssh as super-user

On a linux remote server I've a user who can become super-user without typing the password, e.g. simply typing sudo -s. Using winscp on windows there is an option to pass the sudo command (sudo su ...
0
votes
0answers
45 views

ssh authentification without-password is not working anymore

I used to run an ssh without password on my servers (after I copied my id). Today, it stopped working, here is a debug: OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data ...
3
votes
3answers
437 views

How to allow only machines with specified ip to login via ssh?

I want to allow only machines with allowed ip(s) to login to my system via ssh. For example, userA can use only ip xx.xx.xx.xx or yy.yy.yy.yy to login via ssh, and no other ip can login as the userA. ...
3
votes
2answers
238 views

How does an SSH connection become inactive?

I have setup an SSH connection to run a program on a remote server. The program prints debug information on the terminal every 10 seconds. If I leave the SSH windows open for a long time (say 10 ...
1
vote
2answers
34 views

Questions about using ssh and how it relates to users

I'm not sure if this is a good question but I wanted to ask here before i resorted to IRC. I dont really understand how SSH works. Can you point me to a good resource to better understand ssh ...
1
vote
0answers
45 views

Failed to authenticate via ssh.Centos

yesterday I was trying to authenticate via ssh "ssh demo" and return me the following error. ssh: connect to host ip port 7221: Connection refused If you need more information I will provide it ...
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
1answer
45 views

Inside a bash script doing an ssh, automatically add the host only for certain known RSA keys

I have a Chron job running a bash script that then SSH's to a my server. But my server's IP address changes from time to time (my bash script has a way of finding looking up the new IP address). But ...
1
vote
2answers
142 views

Get rid of abandoned SSH processes

I have a Linux machine running dropbear as its SSH server. I open many SSH sessions from a client towards that machine, meanwhile the sessions are active I pull out the Ethernet cable from the server ...
3
votes
1answer
86 views

What Command Line tools to connect from Unix to remote Windows?

I need to make some scripts for connecting from a Unix server to several Windows stations for automating file transfers. GUI is not needed and I can't install any additional software into Windows ...
0
votes
1answer
38 views

Circumvent deletion of screen session and nohup processes on logout

Everywhere I look I see that screen is for keeping a session open so that you can come back to it after disconnection. But this doesn't seem to be the case for a system that I ssh to. Do I ...
1
vote
0answers
26 views

How to programmatically change a password on an IPSwitch server using a Linux client?

One of my companies customers runs an IPSwitch sftp server, and they have disallowed public key authentication, and require us to change our password every 90 days. The problem is that, I cannot see ...
1
vote
1answer
53 views

Issue with resize and stty on remote ssh script?

Scenario: Source host (Solaris 5.10, KSH), im trying to run the following script named sample.ksh on source #!/bin/ksh set -x Rediscover () { ssh user@hostB ./scripts/test.ksh } Rediscover exit 0 ...
1
vote
0answers
39 views

SSH over IPvanish

Hello I have been trying already for several days to access my tiny server via ssh with openVPN. Everything works fine without the VPN. I have tried all that you can find on forums...add an ip rule ...
0
votes
0answers
24 views

respawn with arguments and tty3 without root?

Please bear with me as I am not a Linux guy. I am trying to start a application to run in a terminal that I can ssh in and conspy to see the activity and also respawn if there is a crash. I have a ...
0
votes
1answer
128 views

How To Install and Configure ImageMagick for PHP and Wordpres on Amazon Linux AMI

I've installed a fresh Wordpress site on my Amazon Linux AMI following the setup instructions listed on the EC2 Tutorials section i.e. "Hosting a WordPress Blog with Amazon Linux". I'm also using the ...
0
votes
1answer
53 views

Auto login to SSH without keys? [duplicate]

I am looking for a way to ssh to a machine, without using SSH keys. When I try to pass the password echo "password" | ssh user@machine It just gives me an stdin error How do I SSH without ...
0
votes
0answers
50 views

cygwin ssh not working

I installed cygwin on Windows 7 and trying to test SSH to local host but getting the connection refused and stdin is not a terminal error: Here is the detailed log: $ ssh -vvv localhost ...
3
votes
1answer
34 views

Locate and manage files on extern hard drive through FileZilla over SSH

I have installed Debian Server on one of my servers and plugged in a extern hard drive to it through USB (sdb1, 2, and 5 on the image below) where I have all my files on right now. Before I used this ...
2
votes
0answers
18 views

Playing remote audio files over SSH [duplicate]

I am connected to a machine via SSH and I often need to listen to WAV files on that machine. I usually open another terminal window and do ssh host 'cat /path/to/sound.wav' | aplay, but that's tedious ...
1
vote
2answers
53 views

Forward ssh for git user to git server

It is surprisingly difficult to find information on this simple problem. Like many people we run a gitlabs/gogs server on a remote instance. Currently it listens on port 10022. We also run ssh on ...
1
vote
1answer
30 views

ssh_config: Add a host section that matches IPs even when connecting via hostname

I want a host section in my ssh config that matches any local IP: Host 10.* 192.168.*.* 172.31.* 172.30.* 172.2?.* 172.1?.* setting setting ... This works as long as I connect directly to a ...
0
votes
0answers
10 views

Can I make entering my private key's password work like sudo does? [duplicate]

Is there a way to skip typing my SSH private key's password if I have used it recently, similar to when sudo caches your credentials for a limited time? I know that I can use ssh-add with the -t ...
0
votes
1answer
79 views

How to add public key to QCOW2 image via virt-sysprep

I am trying to add my public key to the root account on a qcow2 disk image (CentOS 7 Cloud Image). The documentation from virt-sysprep says that it supports adding keys, but I cannot seem to ...