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

learn more… | top users | synonyms

1
vote
1answer
20 views

upload and dowload the files from server without giving password

I want to download the file from sever by using cron job, so I need to use scp command without giving password by keyword. How do I do so?
1
vote
0answers
19 views

SSHD_CONFIG keeps corrupting on reverse SSH setup

I have a reverse SSH setup to traverse an impenetrable CGN NAT. It works well, but the SSHD daemon on the client behind the NAT keeps dieing for unknown reasons (fails to start-up). The client ...
0
votes
1answer
36 views

Create A Script That Responds To A Password Prompt

I'm writing a shell script that will respond to a prompt. For example, when I execute a file, the executed file will then prompt the user with this: Please enter the password: Then I want the script ...
2
votes
1answer
20 views

encfs automount and authorized_keys

Here's my problem: I have encfs configured in such a way that on login the subfolder ./private is mounted. However, when I use the workstation remotely via ssh, I don't give my password on login, ...
0
votes
2answers
25 views

How to instablock IP based on root SSH login

I have had this setup before by a friend of mine but it got lost in a reinstall. Basically what happened was, whenever someone would directly SSH to my server as root their IP would get blocked, you ...
0
votes
0answers
8 views

SASL authentication fails when called from crontab

When I run mbsync from the command line it works fine. But if mbsync is run from the crontab, mbsync fails with this error "Error: SASL(-1): generic failure:". My guess is that mbsync's SASL ...
1
vote
1answer
24 views

Keep service running after ssh session ends [duplicate]

i have an ubuntu-server box to which i connect via ssh. now when i start a service (in this case teamcity) i would like to keep it running after the ssh session ends. right now the service stops as ...
-3
votes
1answer
24 views

ssh tunel how to?

ok I have a following situation. machine1 , machine2 and laptop. I need ssh and scp protocol enabled such that I can access to machine1 and do some things there. also i cannot access to machine2 ...
0
votes
0answers
8 views

Linux Mint will not allow traffic from one specific PC on LAN

I was editing /etc/network/interfaces, and then decided to change my settings over VNC instead. This halted my SSH session and also my VNC. I'm not sure if this locked me out or not, but I set cron up ...
0
votes
0answers
27 views

Configure connection from Virtual Machine to a specified server

I know this might sound rather ambiguous, but I don't know how else to put it. I'm working on a Virtual Machine and I use SSH to connect to another virtual machine . Is there anyway that I can ...
0
votes
1answer
43 views

How can I modify client SSH settings?

I am logged in a system as student. How can I modify client SSH settings so that when I write the following command ssh 123.4.5.67 , SSH client authentificates me as another user?
0
votes
0answers
48 views

SSH randomly stops working, and any other request from network related services

I'm pulling my hair out right now, since I don't know where else to look, what else to do, to find out why the SSH stops working suddenly. The ssh-server is on the same network as the client, but it's ...
1
vote
2answers
61 views

Have SSH on port 80 or 443 while webserver (nginx) is running on these ports

I have a remote Linux (Debian) machine which I'd like to access from a very restricted network. In fact the only two open ports are port 80 (for HTTP) and 443 (HTTPS). On this machine I have nginx ...
0
votes
2answers
26 views

Is it possible to configure ssh to login with a key if it exists or use a password if it doesn't?

I'm trying to configure sshd for our internal network to accept public key authentication if a user has set up their key or ask for password if the user has not, but not both. So a user should be ...
9
votes
1answer
488 views

How do I force a user to change a password at the first time login using ssh?

I'm trying to force a newly created user to change a password at the first time login using ssh. For security reasons I want to give him a secure password until he logs in for the first time. I did ...
1
vote
1answer
24 views

Jail in chroot in debian 7.5 - Privileges Separation problem

I'm trying to create a jail for a user in my server. Let's call the user "juser". What do I want to achieve? I want an ssh user to be jailed in his home folder and not have any access (whatsoever) on ...
0
votes
0answers
11 views

Remote shell weird behaviour using arrow keys and editing commands

I am logged in remotely over a rather slow connection and the terminal is doing weird things when trying to edit commands. For example, I start with find . -type f | xargs grep "_RWSTD_STATIC_CAST" ...
0
votes
2answers
70 views

cp: cannot stat : No such file or directory

I am getting an error when I try to copy a file from my local computer to a remote server with ssh. I get the same error whether I use cp or scp. Here is my input at the resulting error: ...
4
votes
2answers
26 views

SSH password requested when in Tmux

When I connect to my remote machine I do authenticate using a rsa key (I think is rsa, don't remember). If I do ssh from a regular shell I get logged on the machine without a password. However if I ...
1
vote
1answer
18 views

Unable to get last connection info for SSH users (locked, no shell, public key) is there an alternative?

I have several remote systems connecting to my server via SSH to establish tunnels. They authenticate using a public key, their user is locked and their shell is set to /usr/sbin/nologin It all ...
0
votes
0answers
39 views

ssh: connect to host 104.131.76.121 port 10222: Connection refused

I have been trying to solve this problem for quite some time. The error is in the title. The server is a digitalocean ubuntu 14.04. It was working before hand. I changed the ServerAliveInterval on ...
0
votes
2answers
43 views

Using something like scp but when I've logged in already [duplicate]

I want to copy a file via ssh when I've logged in. What scp does is that it copies the files by login, password, path. What I want is to be able to do the same thing when I'm "inside", ideally without ...
1
vote
0answers
16 views

SFTP/SCP only and chroot [duplicate]

We have a SFTP Server and a bunch of users. The users share files over the SFTP Server with us (not the best solution, I know). Every user is chrooted into a different directory to prevent them from ...
3
votes
0answers
51 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 ...
1
vote
0answers
30 views

Streaming Qt over ssh

I am trying to stream a program over ssh and it doesn't work. It is written in qml and I've already compiled it, but qmlscene doesn't work either (doesn't matter what file). The error I'm getting is ...
2
votes
1answer
45 views

How does ssh prompt for a password when all input and output is redirected?

I don’t actually need to run the command below, and I am aware of ssh keys if I did want to log in without typing a password. I would just like to know how ssh seems to circumvent my file redirection. ...
0
votes
1answer
23 views

SSH login attempts

The log on my server is full of entries like these: input_userauth_request: invalid user dennis [preauth] Received disconnect from xxx.xxx.xxx.xxx: 11: Bye Bye [preauth] Invalid user park from ...
0
votes
1answer
54 views

ssh connection closed, after prompting password

I'm using a debian based distro for Raspberry Pi (Raspbian). Sometimes I cannot ssh to my Pi. A reboot solve the issue, but I don't always have physical access to the Pi. here's what happens: ...
1
vote
2answers
33 views

Lightweight SSH-only distro (< 128 MiB RAM) [closed]

I am looking to set up an SSH entry point into my network via a lightweight Linux or BSD setup. The purpose of the distro will be to allow SSH access into the rest of the internal network—that's it. ...
0
votes
1answer
34 views

How to stop background processes started with screen

This question might have been asked before but I don't see it. I use screen ssh to remotely start processes that take multiple days. I ssh in, start multiple processes in the background, and detach ...
1
vote
1answer
35 views

How to connect to another machine over SSH?

Is it possible, by simply issuing: ssh user@ip_number:port and providing a password? Or does something have to be installed, or not blocked? I am referring to two machines over the Internet.
2
votes
1answer
79 views

installing fail2ban on CentOS 7

I am using @GarethTheRed 's answer to this question to install fail2ban on a remote CentOS 7 server. I am able to complete all the steps up until tail -f /var/log/fail2ban.log, at which point I get ...
2
votes
3answers
41 views

SSH command with file redirect not working

I want the following command's result to redirect into a file on the remote server, as I want only unique lines in my authorized_keys file: ssh root@10.100.10.26 awk '!seen[$0]++' ...
0
votes
2answers
57 views

Download n Upload files via telnet session

I have an attendance Device with Linux OS installed. I am able to connect that device via telnet session. There are some files in the device which I need to download and upload with new files. How can ...
-1
votes
0answers
14 views

X11 forwarding through a server where X11Forwarding is disabled

How can I push an X11 forwarding session over an SSH tunnel when the server doesn’t allow that? I guess I should use some port forwarding or edit ProxyCommand in /etc/ssh/ssh_config, but none of them ...
0
votes
0answers
28 views

SSH client connection not working to remote servers not working

I am unable to connect to other machines from one of my servers. Here is the verbose output (IP, domain, port are masked. OpenSSH version info removed): $ ssh -vvv user@example.com -p yyyy debug1: ...
1
vote
1answer
32 views

How to refresh chromium (F5) from shell script in debian (alternative of xdotool)

I need some help finding an alternative to xdotool. I am using a Raspberry Pi to refresh a webpage regularly using chromium. For this, I use a shell script: xdotool search --name chromium key ...
1
vote
1answer
37 views

List connected via SSH users [duplicate]

I checked this answer and this option - it is good, but it requires sudo rights. I need that this command may be performed by any user, for this reason I am using next command ps -ef | grep sshd: | ...
1
vote
0answers
23 views

Dynamic ~/.ssh/config

I'd like make my ~/.ssh/config file dynamically generated by a shell script (or anything else that prints to STDOUT). Is there a UNIX trick to make reading a file result in executing a command & ...
0
votes
1answer
26 views

SSH connection gets lost, but not when logged in to MySQL

When I open an SSH connection to our database server and leave it open for a longer time, the connection gets lost at some point. I don't know why or how, but this happens a lot. I still see the ...
1
vote
2answers
32 views

SSH Tunneling Through a Firewall to a Cluster

I work at a university but I often work remotely. There is a cluster computer at the university that I need to be able to interact with, but its behind a firewall. Let's call the firewall F and the ...
0
votes
0answers
23 views

“Shell connection” item disappeared from Midnight Commander menu

I have performed an upgrade of my distro (openSUSE 13.1 -> 1.32) and now no long see menu item in Midnight Commander that allows me to perform operations with remote files via SSH. Coressponding menu ...
0
votes
1answer
60 views

sshd resets connections on different port

I want to run SSHd on my raspberry device on two ports. I've added Port 22 Port 5500 to /etc/ssh/sshd_config, and ran /etc/init.d/ssh restart. Problem is, that connection on port 5500 is always ...
3
votes
1answer
54 views

SSH for user without a login password

I have created a user without a password $getent passwd logcoll logcoll:x:998:999:Log Collector,,,:/var/backups/logcoll:/bin/sh This user has no password, and this machine requires users to login ...
4
votes
3answers
194 views

Automatic login via ssh (no GUI environment installed / no ssh-agent available)?

I have three systems, and I want to have them doing backups between them periodically. The two of them, have Debian Wheezy installed and the other one has Ubuntu 12.04 installed. Only the Ubuntu has a ...
0
votes
0answers
20 views

Network communication between two nodes in a Hadoop cluster

I am running a 7 node hadoop cluster with each box running Ubuntu 12.04. It is running CDH4 setup using Cloudera Manager. It was already setup and running when I came in but now I'm running into a ...
0
votes
0answers
27 views

nohup, screen and tmux not working when closing connection on yocto linux (intel edison)

I have an Intel Edison with Yocto Linux and standard configurations. It had nohup pre-installed and I managed to install both screen and tmux (by compiling them from sources). Now, I would like to run ...
0
votes
1answer
34 views

Is there a way to specify the list of private keys to add to ssh-agent?

After a few hours of digging, I finally found out why my computer stopped asking me for my key(s) using gnome ssh-askpass. It was very simple, but took me forever to figure out because... well... most ...
0
votes
2answers
30 views

Pinpoint strange text at initiation of SSH session

On my OpenSUSE 13.1 (Gnome 3) system, whenever I start a SSH session, somewhere in the initialization, the terminal outputs some strange lines. Last login: Sat Nov 29 00:00:00 2014 from [HOSTNAME] ...
0
votes
0answers
13 views

How to troubleshoot: “X11 connection uses different authentication protocol.”

I start an ssh session with localbox % ssh -vvv -Y remotebox 2>debug_ssh_log ...which succeeds. Then I try to run xlogo on remotebox, but the command fails immediately, and the following lines ...