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

learn more… | top users | synonyms

27
votes
7answers
5k views

My server is constantly being attacked [closed]

I am fairly new to the system administration world. I've been working on an application recently and when I check my application server logs, I constantly get various IP addresses trying to ssh into ...
1
vote
1answer
51 views

How to pipe scp/ssh file transfer(pull) through tar (remote->local transfer initiated from local machine)

I would like to pipe an scp pull operation(sample without tar below) through tar, so that only one tar file is written for about 10 directories: user@localhost:/home/user> scp -r ...
3
votes
2answers
50 views

Seeing file names in SCP

I'm using scp to copy files from a remote server to a local one. What's really uncomfortable is that I need to type the file path precisely. I'm used to relying on autocompletion, because file names ...
3
votes
1answer
46 views

A consistent and safe approach to passwordless accounts with SSH

I must admit that I like servers without passwords in some cases. A typical server is vulnerable to anyone who has physical access to it. So in some cases it is practical to lock it physically and ...
2
votes
0answers
33 views

Avoid creation of .k5login file in a SFTP Chroot configuration

I've successfully set up an sftp with authentication on Active Directory. All users in a particular AD group are managed by SSH's sftp subsystem and chrooted into a common home directory, let's say ...
1
vote
2answers
31 views

Establish a shared terminal between two PCs through the internet

My PC and that of my friend are in two different local networks, each connected to the internet via a router, each LAN has only one IP which is temporallily allocated by the ISP. What problems do we ...
4
votes
2answers
94 views

How to force ssh-copy-id to ignore existing authorized keys?

Edit: There's a bug report for this, doing the equivalent of this answer. I'm trying to script the copying of public keys to multiple machines. ssh-copy-id checks whether it can log in with the ...
1
vote
3answers
59 views

Can a command be executed over ssh with a nologin user?

If a user has loginShell=/sbin/nologin is it still possible to ssh user@machine [command] assuming that the user has proper ssh keys in its home directory that can be used to authenticate? My ...
-1
votes
2answers
58 views

How to prevent the messages about REMOTE HOST IDENTIFICATION HAS CHANGED

Is it possible to prevent the following message about: ( REMOTE HOST IDENTIFICATION HAS CHANGED ) When using only this connection syntax ssh xxx.xxx.xxx.xxx example of warning message: ssh ...
2
votes
1answer
96 views

Cannot ssh into a fresh install of CentOS minimal on lan

I've downloaded CentOS 7 Minimal and installed on an old laptop. I want to be able to ssh to the machine from other machines on the same lan. But I keep getting this error .. ssh: connect to host ...
0
votes
1answer
67 views

How to open the SSH port 22? [closed]

I have installed the ssh utility on an embedded system but I can't connect to it. I am able to ssh from the device to another computer on the network but not the other way around. The only port ...
0
votes
1answer
62 views

SSH to a virtual machine

I recently installed a Linux (Mint 17) virtual Machine on a Windows 7 PC. In order to be able to SSH to this virtual machine, I had to define a few rules and redirect ports as explained in other posts ...
0
votes
0answers
51 views

Create SSH session between Kali Linux to Windows XP

I'm currently using PuTTY to connect Windows XP to Kali Linux which has been very successful. However, for a project I'm working on, I need to connect from Linux to XP (using PuTTY still), but the ...
-2
votes
0answers
28 views

How to create sftp user that only has access specific existing Folder

I want to add ssh user who only has permissions to access specific directory: /home/apps/archived_log This is an existing directory, I want new user to only have access to archived_log
0
votes
1answer
32 views

Running 2 OpenVPN on the same box

(Fist of all, I'm a total Unix newbie). I know I can create two (or more) user accounts with root privileges, and I can access them independtly through SSH sessions. But I don't know how Unix systems ...
1
vote
0answers
46 views

Xorg: Connect remote display

I'd like to use laptop's monitor as second display for my main Debian workstation. I need exactly second monitor, but not Debian's X11 on laptop.
3
votes
3answers
136 views

How to rsync files between two remotes?

I would like to transfer files between two remote hosts using on local shell, but it seems rsync doesn't support synchronisation if two remotes are specified as follow: $ rsync -vuar host1:/var/www ...
2
votes
1answer
24 views

How to specify ConnectTimeout for dropbear?

I'm trying to use the Dropbear SSH and in the previous version of SSH I used, you could add the argument -o ConnectTimeout=10 to cause an attempted connection to timeout if unsuccessful after ten ...
-3
votes
2answers
60 views

SSH with no password

I have a Shell bash file that i run as sudo and it contains a file to send a ssh comand to bulk clients but it asks for the password every time and i do not what key based ssh the password is the same ...
0
votes
1answer
54 views

CentOS with AutoSSH, Port Forwarding Clarification

I'm using autossh and set it up like shown in the following example: http://surniaulula.com/2012/12/10/autossh-startup-script-for-multiple-tunnels/ I found it works really well, but need some ...
1
vote
1answer
18 views

How to backup files with only a minimal resue system?

I only have access to my vserver via a minimal rescue system over ssh. It does not have scp or ftp installed. Is there an easy way to backup the files, preferably directly to an ftp server, but to ...
1
vote
1answer
68 views

Reason why ssh RSA key would change?

Today I went to connect t my Centos 7 box via ssh and my sftp client and both indicated that the server RSA key finger print had changed. I've checked all my logs for suspicious activity but don't ...
0
votes
1answer
28 views

Running a “scheduled”/delayed script as sudo on server, via ssh - and right before ssh exit

This would have probably been answered by Keep running a script via ssh, if I didn't have to run a command as superuser. Let me try with an example: say on my server, I have this script as ...
1
vote
1answer
39 views

How do I login to the same remote server with two different usernames via key-login from a same local user?

I have a remote server at www.example.com And when I use ssh-key login it, everything looks fine. I read some tutorials, established the private/public key pair, etc. The login looks like: ssh ...
-3
votes
0answers
55 views

SSH Rootkit (EBURY) affected Server, What is the solution?

{i am a active member of many sites of stackexchange, Please do not mark this as a duplicate, i have verified & also this is very specific problem. I am posting it here, Bcoz this is only website, ...
0
votes
1answer
41 views

SCP from remote to local does not work

I can scp just fine from local to remote by doing: scp trip3.csv pi@192.168.2.11:/home/pi/ But when I try to do remote to local (below) it says no such file or directory: scp ...
3
votes
1answer
153 views

Why do changes to /etc/passwd not take effect?

I've edited /etc/passwd by running usermod -s to change my shell. (chsh doesn't work, because it prompts for a password; we SSH in using keys.) When I disconnect, and reconnect, the change doesn't ...
2
votes
3answers
49 views

How to merge keys, or handle keys with the same file name?

I created a key for logging into a server (using ssh-keygen) with the name id_rsa, and so in my .ssh directory there is id_rsa.pub and id_rsa. The reason I used this name, is because when I tried ...
-1
votes
0answers
20 views

get command not found-unable to send file from ubuntu desktop to ubuntu server

I am currently trying to send files between my server ubuntu vmware machine and my desktop vmware ubuntu machine which are under different ip addresses and usernames. I am able to send to the desktop ...
0
votes
1answer
57 views

SCP without password prompt using different username [duplicate]

I have 2 servers, Server1 and Server2. On Server1 I have a user named user1. On Server2 I have the user named user2. I need to be able to write a script that runs on Server1, which will scp some ...
1
vote
1answer
21 views

Restrict SSH login to local network: VPN connection not allowed

There are two (unix) users who are allowed to connect to my Debian Wheezy server using ssh: git and peter. While git is allowed to connect from everywhere, peter (who is in the sudo group) should be ...
1
vote
2answers
110 views

Remote server randomly hanging on ssh login

I'll try to ssh into the server ssh name@box-a At which point I'll usually be prompted for a password and then it logs me in. Sometimes though, when I try to ssh in it just hangs after I press ...
0
votes
0answers
66 views

When running some X prog. remotely with ssh -X, it says “libGL error: failed to load driver: r600”

OS: CentOS Linux release 7.0.1406 (Core) Kernel: 3.10.0-123.8.1.el7.x86_64 When I run xcrysden (http://www.xcrysden.org/) remotely through ssh -X, it crashes with error: "libGL error: failed to load ...
0
votes
1answer
35 views

Removed id_rsa unable to recreate passphrase

The other day I tried to make a new ssh key on my vps. For some stupid reason I removed the id_rsa file instead of just typing ssh-keygen -p When I now try to use that command it asks me for the old ...
0
votes
2answers
76 views

Script to SSH to multiple Linux Server and execute a find command [duplicate]

I need a script that can SSH to multiple servers and execute a find command to check when was the last time a file was created. I can get the fine command part, but I'm a little bit lost on how I can ...
1
vote
1answer
37 views

killing tunnels for a user connected with ssh -N

I created a forward only ssh connection with the following: ssh -i id_rsa -o TCPKeepAlive=yes -o ServerAliveInterval=10 \ -N -n -R 127.0.0.12:8888:127.0.0.12:8888 fwduser@192.168.1.201 Mow, ...
1
vote
0answers
128 views

Can't connect to a server via SSH (with my PC only)

For some days I'm experiencing issues with SSH on my machine (I guess after having installed some softs that I don't remember... (sic)) It's very problematic as I use Git to work on some code ...
0
votes
1answer
28 views

Looking for effective alternative to ssh-copy-id which fails if you do not have the private part of the key?

To my surprise, I discovered that ssh-copy-id fails if you do not have the private part of the key, making it not usable for deploying someone else key. I an looking for a reliable way to deploy ...
1
vote
1answer
39 views

SSH message, source of a after-login greeting command

On a server previously adminstered by someone else i noticed non-standard after-login ssh message. It looks like this: In case of problems please send an email to ....@..... Disk quotas for user ...
2
votes
2answers
53 views

Different ssh login directory from user home

So, I'm working on a remote server via ssh that I log in and out of dozens of times a day, and I'd like to have bash cd to a default directory I've chosen as soon as I login, but I don't actually want ...
0
votes
0answers
46 views

ssh into fedora inside virtual box over internet

I am running fedora server in a virtual box inside a windows 7 host. I can ssh into fedora from this windows 7 host. How ever, I stay out of my place most of the times with a laptop at my disposal, ...
0
votes
1answer
24 views

How to create user with only SSH permissions [duplicate]

I need to create a user which can SSH to a server, but can not run any commands or view anything, for the purposes of tunneling the connection without risk of revealing credentials. How do I do this? ...
1
vote
1answer
33 views

How to install software on to multiple linux clients

Is there any free way or method for ssh that could be used to install and update linux clients for a ubuntu laptop. I do not have password less ssh but the admin password is the same for all of the ...
0
votes
1answer
15 views

Connect to other devices under same AP isolated network

I am trying to debug my android application under a public wifi network. The network seemed to have AP isolation on so I can't connect to my android device using my notebook. However, both of my ...
1
vote
0answers
23 views

How do I correctly configure Danted?

I have a debian droplet on digital ocean that I'm trying to get danted to work on. I know I have the right username and password and I want to set up a socks5 proxy with auth. Maxathon gives me a 130 ...
0
votes
0answers
30 views

Authenticating a virtual machine against a git server

I have a CentOS 7 VM hosted on a Scientific Linux machine (Both branches are Red Hat). I'm using docker as the SW to emulate CentOS over SL. Communication between both is done through a bridge (a ...
1
vote
0answers
30 views

Using Rsync to SSH and Find files

Hello I am trying to use Rsync to SSH into a remote server and pull a certain type of file that has been modified within the last 24 hours. Here is what I am trying: rsync -avx --timeout=480 ...
1
vote
3answers
82 views

Send email if user accesses the server via ssh [closed]

I want to get notified if any person accesses my Debian server via ssh. So I want to send an email whenever a user logs in on my server via ssh, so I added this line at the end of /etc/profile: ...
1
vote
3answers
88 views

Troubleshoot SSH connection problem

I am looking for tips on how to troubleshoot a problem with connecting to a new server via SSH. I am trying to connect using private-key authentication, where SSH uses my local private key to ...
1
vote
1answer
23 views

output log file from some time to some time via ssh

I have a access_log which size is neally 2GB. I want to analyze it from 2015:09:55 to 2015:09:57, but during this period, there have more than 500 items. So I want to output and download the ...