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

learn more… | top users | synonyms

1
vote
2answers
36 views

More efficient X-forwarding?

I open GUI remote programs by SSHing with the -X (or -Y) flag, e.g., $ ssh -Y user@host.com Recently, I found there is a much more efficient way to do this with web browsing only: $ ssh -DNNNN ...
2
votes
0answers
634 views

How to pass multiple commands via pssh and multiple xterms

I'm attempting to open multiple xterms and run a command as an SAP user via sudo using pssh. So far, I'm able to run PSSH to a file of servers with no check for keys, open every xterm in the servers ...
0
votes
1answer
7 views

How to make parallel-ssh stop prompting for password?

I have passwordless ssh setup between the 2 machines. ssh doesn't prompt for password but pssh does. I cannot run commands which need data piped into pssh as the prompt messes with the input. How to ...
1
vote
1answer
18 views

Firefox with X11 Forwarding is not working

I cannot open firefox via ssh: I've tried with: ssh -vvv -X user@192.168.40.21 But it outputs: debug3: send packet: type 50 debug2: we sent a password packet, wait for reply debug3: receive ...
3
votes
1answer
53 views

SSH login issue with two different user names

I'm facing a login issue with SSH (dsa), here the scenario: On my host I've created ssh keys for the user dx and set permission of .ssh and id_dsa and id_dsa.pub I sent the public key to the remote ...
0
votes
0answers
16 views

Would the shell script or command still be running remotely when my local connection is lost? [duplicate]

What would happen if the internet connection is gone or my local computer gets power off when I run a command or a shell script on remote server with ssh? Will the script be executed completely ...
3
votes
1answer
3k views

Chroot gone wrong, can't ssh with user

Distribution: Scientific Linux 6.5 (Carbon), not exactly your typical brand of linux. Tried to chroot a user using these instructions for SSH and quite obviously failed, and now I can't even log in ...
0
votes
0answers
24 views

bind: Address already in use: but no process using it [on hold]

I would like to connect to a Linux machine (machine1) and forward port 5900 to a second one (machine2) $ ssh -L 5900:machine2:5900 root@machine1 -N bind: Address already in use ...
1
vote
1answer
15 views

Can not succeed in excluding user in match directive in SSHD config

I’m having a problem with my sshd config. I want to limit all users of the group www-user to sftp use. All of them but the user yorunokoe. I saw that related question : How to exclude from a ...
2
votes
1answer
1k views

Why SSH login works in shell but fails in all third parties via ssh tunnel?

I'm using ssh to log in (prompt password first time) on a remote server. In shell, using this command: ssh root@myserver.com works well! But all other db software applications that I tested ...
3
votes
1answer
36 views

Check presence of a hostname under custom port in known_hosts

I need to add a check if the hostname is already present in the known_hosts. Normally I would do something like that: ssh-keygen -H -F hostname However, that does not seem to work for me in this ...
2
votes
2answers
172 views

Run a ping command on list of servers and output to a file

I have a file servers.txt on a different server, with list of servers: server1.mydomain.com server2.mydomain.com server3.mydomain.com I want to first download this txt file, ping these servers and ...
2
votes
2answers
147 views

How can I run ssh-add on demand? Can it act as SSH_ASKPASS?

I want to ssh from user@local to user@remote several times per day with an encrypted SSH key, a situation which ssh-agent handles with a good trade-off between security and usability. I'd also like ...
3
votes
6answers
18k views

SSH: “Server refused our key” with no reason

I was trying to set up a simple backup script to run automatically that would copy a file from a Windows machine to a Linux one through SSH. As a lot of simple online tutorials suggest I used pscp ...
1
vote
0answers
25 views

How to evaluate commands on the given node of cluster by using plink?

Despite plink (putty link, which provides remote evaluation of commands on remote cluster by using ssh) is Windows application, I hope that You will help me in this question. I have the remote ...
0
votes
2answers
79 views

How SSH Tunneling is working

can someone explain how the following ssh tunneling is working ? ssh root@localhost -P 2222 -pw 1234 L 3300:remote_WIN_machine1:3389 this ssh command is running from Linux machine while the remote ...
0
votes
1answer
28 views

reverse tunnel on a multi hops ssh tunnel

I'm a windows user, that needs to access his server at home using a double hop ssh tunnel. I've configured via putty, a socks tunnel on a 2 hops ssh connection using a dynamic port, based on this ...
-5
votes
0answers
34 views

fail to ssh on remote server

I am not able to login through below command. Here kkit is super user. As User kkit on server a ssh server b Error : connection closed by server b. But while using ssh -VV pbit@server b I am ...
13
votes
3answers
20k views

SCP from one server to another without password prompt

What is the best way of doing scp from one box to the other without prompting for password? There are two servers: Server A (10.152.2.10): /home/oracle/export/files.txt Server B (10.152.2.11): ...
1
vote
1answer
2k views

Fail2ban with firewalld

I'm trying to configure fail2ban to block ssh from a local hosts. Fail2ban is install on CentOS 7 with firewall (Linux 3.10.0-229.4.2.el7.x86_64 x86_64 ). I have copied the jail.conf to jail.local i ...
3
votes
0answers
17 views

Determine which server is the best choice for high resource-consuming task

I have a time and resource consuming task I am running every once in a while (make), which can be run on any one of a servers pool. Problem is, I am not the only user running make, and when two or ...
9
votes
1answer
283 views

Linux iptables ssh port forwarding (martian rejection)

I have a Linux gateway performing NAT for my home network. I have another network which I'd like to transparently forward packets to, but only to/from specific IP/ports (ie. not a VPN). Here's some ...
1
vote
0answers
13 views

Vagrant ssh closes connection after executing -t option

I'm trying to create a script that will bring up my vagrant VM (a Ubuntu box hosted on OSX) navigate to the correct directory and start up my virtual env. I've read that this command should work for ...
2
votes
2answers
63 views

Getting the date from a ssh client

I have a problem with an embedded computer where it does not have a separate Real Time Clock and as such every time I reboot it, it loses track of the current date. This is very annoying because lots ...
10
votes
4answers
46k views

How to ssh to remote server using a private key?

I have two servers. Both servers are in CentOS 5.6. I want to SSH from Server 1 to Server 2 using a private key I have (OpenSSH SSH-2 Private Key). I don't know how to do it over unix. But what I did ...
1
vote
0answers
23 views

can two android devices in different network(3g) comunicate themselves with ssh connection?

I have two rooted android devices with different isp(i use different 3g connection for them) and created a double ssh connection(i can with a public ip server)comunicating both to this server(i have ...
-1
votes
0answers
35 views

How to write the shell script which check if the file is present on the cluster file system?

Suppose we have pscp on Windows, and remote control to Linux cluster through key key.ppk, the user and host is name@cluster.com. How, by using shell script (in cmd file), check if some file is present ...
0
votes
1answer
20 views

Correct way to use Qemu terminal mode in Byobu via SSH [closed]

I'm trying to start qemu via ssh on a server without X11 installed, using byobu and these command: qemu-system-x86_64 -cdrom /backup/installer/archlinux-2016.05.01-dual.iso -boot order=d -drive ...
6
votes
1answer
46 views

Why does SSH add a known_host entry for an IP address?

I have a host named nms.example.org. In my /etc/ssh/ssh_known_hosts I have an entry for the host with the RSA key. This entry, and all the other entries are managed by my configuration management ...
0
votes
1answer
26 views

ssh with password get “access denied” error after assign the user to a different group [closed]

I ran into some problems with ssh. After assigning a user to a different group (User leon, Group developer), I got "access denied" error. And I tried to add "AllowUsers" and "AllowGroups" into ...
1
vote
1answer
1k 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 ...
-3
votes
1answer
42 views

How ssh into CentOS virtualbox? [closed]

I use window 10. And I have already installed CentOS on virtualbox, on window 10. I want to login into ssh from my window to that CentOS virtualbox machine. Can you tell me a tutorial to doing this? I ...
0
votes
1answer
37 views

SFTP SSH users use from two hosts connecting same server

Can I have two SFTP SSH clients using same ssh user name but different public/private keys connect to a target server, the server has both the public keys configured? Currently from one of the client ...
3
votes
1answer
25 views

.ksh session hangs after being inactive

While remotely connecting to a Linux machine using ssh, my .ksh session hangs after being inactive for sometime. If I try to type or ctrl-z, the prompt does not respond. Is there a way to restore my ...
5
votes
3answers
12k views

Cant ssh, connection terminates immediately with exit status 254

The most recent thing I remember is changing the soft and hard memlock ulimit to unlimited. Now I cant ssh into the machine. This is the ssh log. Authenticated to IP ([IP]:22). debug1: channel 0: ...
1
vote
2answers
762 views

bash scripting : using expect

I am facing an issue when I run simply these commands. The remote server want to pass "yes" to add the key in RSA file because first time connection established with scp. commands are given below ...
33
votes
6answers
3k views

Linux equivalent to PowerShell's “one-to-many” remoting

Coming from Windows administration, I want to dig deeper in Linux (Debian). One of my burning questions I could not answer searching the web (didn't find it) is: how can I achieve the so called ...
0
votes
0answers
14 views

ssh/git does not use GUI to ask for password after upgrade to to Ubuntu 16.04

I used to run Ubuntu 14.04 on my computer. Whenever I used ssh keys to log in to various servers, I used to get a GUI pop-up dialog asking me for the password for my key. After entering the password ...
1
vote
4answers
57 views

execute command over ssh connection [duplicate]

I want to excecute the following command over a ssh connection: tmpValue=$(cat /var/run/jboss-as/jboss-as-standalone8.pid) && top -b -U jboss -n 1 |grep $tmpValue |awk '{print $9}' This ...
1
vote
0answers
35 views

Locked myself out of Amazon EC2 [duplicate]

I'm working with an Amazon EC2 instance and at some point, I wanted to chown a directory recursively, and it looks like I applied the command to the whole file system. As a result, it is possible that ...
3
votes
3answers
38 views

Can I re-direct an existing (entire) gnome-session's display to a remote work station?

So instead of using VNC for example - I could actually run a command on my home-fedora terminal and have my work-fedora existing gnome-session appear at home?
1
vote
1answer
957 views

Terminal colors putty raspbian

I'm connecting to my Raspberry Pi from my Windows Machine using putty. I already adjusted the colors for bold blue in putty to be more readable (using this guide). But I still have problems with the ...
1
vote
1answer
2k views

How to execute Netscaler commands through a remote machine via SSH connection

I have been trying to execute some NetScaler commands like "bind" & "unbind" through a Linux Box via an SSH Connection. Now the Problem is, Manually we are able to enter & execute commands on ...
0
votes
0answers
21 views

ssh cant copy key with hamachi

Trying to make ssh work with hamachi networked computers, as a solution for NAT and SPI firewall routers. Ping works, ssh-copy-id refuses to add key. user@c4 ~/.ssh % ssh-copy-id -i id_rsa.pub ...
0
votes
0answers
41 views

scp and rsync not working when executed within .sh files from “startup programs window”

With Ubuntu Mate 16.04, I have a file my_backup.sh like this: # Log just for trying echo $(date) >> /home/albert/dia_hora # BBDD NOW=$(date --date="yesterday" +"%d") ...
3
votes
1answer
70 views

mosh-server needs a UTF-8 native locale to run

I am trying to connect from my Gentoo to RHEL server. Both have mosh installed, however I get this error: petanb@localhost ~/Documents $ mosh root@server mosh-server needs a UTF-8 native locale to ...
1
vote
1answer
63 views

Why grep on remote system says file or directory not available

I'm trying to run a grep command on remote system to give me the result for May 22. But reply comes /bin/grep: /var/log/Clients_Logs/127.0.0.1/*: No such file or directory But when I specifically ...
6
votes
3answers
3k views

Logged on via ssh-key, can I reset my account password?

I am logged in on a server via sshkey (ssh -i /home/me/.ssh/ssh-key me@server). I got sudo rights on that server from the admin, but I can't exercise them, since I forgot my actual Unix password (or ...
0
votes
0answers
20 views

ssh doesn't let you change your password ,if expired

abc@xyz:~$ ssh root@178.63.93.31 root@178.63.93.31's password: You are required to change your password immediately (root enforced) Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-85-generic x86_64) ...
3
votes
1answer
761 views

How to enable systemd user sessions for remote logins on CentOS 7?

I am trying to enable systemd user sessions on my CentOS 7 server. All the pieces seem to be there, and I have also run loginctl enable-linger <user>, but I don't have a systemd user session (or ...