1
vote
1answer
28 views

How to check my account on embedded linux without “/etc/passwd”?

On some embedded linux systems, there is no /etc/passwd file and /etc directory is not writable (which means I cannot set user account and password?). Then what is my (default) account name and ...
0
votes
1answer
25 views

VPS SSH and my OWN IP

Is it possible to to stay in total anonymous mode for the VPS provider? I have got a VPSVZ machine with UBUNTU server. Is it possible to do anonymous tunneling: VPS1 -> VPS2 -> VPS3 (all UBUNTU) ...
0
votes
3answers
77 views

Connectivity between 2 remote Linux machines

I have two remote machines, I'm running a script on one of them. There's some part of the script that should be running on the other one, then the script will continue in its further tasks/commands. ...
5
votes
1answer
59 views

Linux: $SSH_CONNECTION is set even without SSHing to the server

I have a remote server and I am writing a script in the server and want it to fire only when I SSH. I thought of using the $SSH_CONNECTION and $SSH_TTY for this purpose. I found out that when I have ...
6
votes
1answer
110 views

ssh from linux into mac - permission denied

I'm running a Oracle Linux VM on a Windows 7 host and I'm trying to ssh into my MacBook. I've already created the private/pub keys in my Mac. I have copied the id_rsa.pub contents into the ...
1
vote
0answers
76 views

Have tmux wait until I SSH in, to complete rest of Tmuxinator script

After recently discovering tmux and Tmuxinator, I've been trying to set up a development environment to use. Per protocol, we aren't allowed to store passwords/passphrases in scripts. So what I'm ...
-4
votes
1answer
32 views

connect remote host without password in linux [duplicate]

Am trying to connect remote host by using ssh: ssh xxxx@hostname. It will connect by asking password. But I need to connect host with out password.
4
votes
2answers
62 views

777'd some files. How do I repair SSH?

So I'm messing around on a test server and accidentally ran the following (which resulting in SSH breaking): # chmod -R 777 /var Because it's a test server, I'd rather not re-install right now, I ...
0
votes
0answers
35 views

Root able to login but non root users are denied - PAM

One of our servers is not letting non-root users login, but root can login without any issues. The following are the messages from /var/log/secure: Jun 24 18:08:43 jonnserver sshd[14470]: debug1: ...
1
vote
1answer
56 views

login scenario and root ssh access block

I'm kinda new to linux so bear with me. I followed a tutorial on how to grant root access to other users and what I did was, in /etc/passwd/ I changed the other users' uid/gid to 0:0. The problem is ...
1
vote
2answers
158 views

MaxStartups and MaxSessions configurations parameter for ssh connections?

I am copying the files from machineB and machineC into machineA as I am running my below shell script on machineA. If the files is not there in machineB then it should be there in machineC for sure ...
0
votes
1answer
127 views

SSH Login doesn't work using a key Without Password?

Agent admitted failure to sign using the key I'm working on centos6.5(32bit) and I have tried to ssh log in without Password Using ssh-keygen & ssh-copy-id? the steps that I have done: first I ...
4
votes
3answers
177 views

Is it possible to get uid table in Linux?

I'm a student in a university and I can finger and id all users (students etc) through SSH. Here is the id command e147200@beluga:~$ id e201634 uid=22678(e201634) gid=3561(stat_bs) ...
1
vote
1answer
4k views

ssh_exchange_identification: Connection closed by remote host (not using hosts.deny)

I'm not using hosts.allow or hosts.deny, further more SSH works from my windows-machine (same laptop, different hard drive) but not my Linux machine. ssh -vvv root@host -p port gives: OpenSSH_6.6, ...
6
votes
1answer
63 views

Ssh audio redirection

I have DVB-T USB dongle plugged into my Linux server (GUI-less). It works correctly, but I want to stream TV programs from server to my PC. For this I use Kaffeine that way: ssh -X -p 666 -i ...
1
vote
2answers
95 views

Passwordless ssh login not with disabled direct console root login

We have the centralized server which has passwordless SSH configured to access other Linux servers within our environment. The issue we are facing is that when we disable root direct console access ...
0
votes
1answer
37 views

Unrar local files to remote server [duplicate]

I have two Linux servers, one which has several RAR files and another empty one. I would like to extract the archives and move the content to Server 2. The problem is: I do not have enough storage to ...
3
votes
1answer
61 views

Unrar local files to remote server

I have two Linux servers, one which has several RAR files and another empty one. I would like to extract the archives and move the content to Server 2. The problem is: I do not have enough storage to ...
2
votes
1answer
53 views

Problem on running Script on host after connecting

I am new to linux scripting. Please help. I searched on below a lot but was not able to find appropriate answer : I am trying to make a script which I will later schedule as cronjob, so that it keeps ...
1
vote
1answer
940 views

Easiest way to mount Google Cloud Storage in CentOS

we use centos for some hosting projects, but nut very expertise with systems. We pretend to use a main CentOS box to mount an "unlimited" Google Cloud Drive and then share it via NFS to the rest of ...
1
vote
1answer
77 views

How to check for a folder inside a particular folder in shell script?

I am working on a shell script and python script as well. Python script is passing certain parameters to my shell script and then I am using those parameters in my shell script. Below is my shell ...
2
votes
3answers
84 views

Get exit status of a process over SSH

Not sure how to google this (I tried with some things and didn't get much) or how this is even called. This is my typical workflow: SSH to a server run something there and leave it running in ...
0
votes
1answer
135 views

Understand debug messages from sshd [closed]

I'm using OpenSSH_5.8p1 in my machine,I'm connecting my machine using putty client but its slower so I have ran sshd in debug mode and found following messages can any one explain me in detail about ...
0
votes
0answers
81 views

sshd without pam slower

I am running OpenSSH_6.5 with UsePAM yes in my board. I have observed that with UsePAM no in /etc/ssh/sshd_config, sshd runs slower than previous case. How is this possible? My understanding is ...
0
votes
2answers
95 views

which unix or linux command is used to change root password of remote machine(Just an IP address) without using SSH Login [closed]

which unix or linux command is used to change root password of remote machine(Just an IP address)? Suppose I just have an IP address of the target machine which is on my network, But I do not know ...
1
vote
0answers
27 views

libpam load pam modules at every connection

I want to reduce ssh connection time, by debugging sshd have found that libpam is loading all pam modules specified in /etc/pam.d/sshd file at every connection. How to configure/modifiy libpam such ...
0
votes
0answers
24 views

SSH into servers each with different subdomain over one IP [duplicate]

I have several Ubuntu VMs (bridged) behind a router that I want to access remotely. I've also got an nginx reverse proxy that handles the port 80 traffic like this: sub1.example.com -> server1 via ...
2
votes
1answer
304 views

SSH agent forwarding, multiple hop

I tested this setup with Linux origin machine - everything is the same - only the first hop can use keys from origin machine. Initial problem I'm trying to set up SSH agent forwarding with multiple ...
0
votes
2answers
1k views

Running Commands on Remote Linux Server Using SSH

I am writing a Bash Script wherein I need to run some set of commands on a remote Linux server from my local computer using SSH. I want the results to be displayed on the terminal screen or dump the ...
1
vote
2answers
103 views

How to find out all the files in other machines using bash shell script?

I am trying to find out which files are in machineB and which files are in machineC. And I need to run my shell script on machineA to figure out which files are in machineB and which files are in ...
1
vote
2answers
3k views

Convert Amazon .pem key to Putty .ppk key Linux

I have generated and downloaded a private .pem key from AWS. However, to use Putty in order to connect to the virtual machine, I must have that key in .ppk format. The process of conversion is ...
3
votes
2answers
73 views

Remote executing Magic Sys Rq

Is it possible to execute Magic SysRq keys on remote machine, using SSH? For example I'm trying to run like this: xdotool key Alt+Sys_Req+H But I do not see any help in console, also in ...
3
votes
3answers
220 views

How to parallelize the for loop while scp the files?

I am running my below shell script from machineA which is copying the files machineB and machineC into machineA. If the files are not there in machineB, then it should be there in machineC. The below ...
2
votes
1answer
178 views

PAM Authentication and SSH access based on user info stored in sqlite3

I have an application that runs on a Linux box. The application stores all its user information (like - username, password, ssh-allowed, etc) in an sqlite3 database as follows. username ...
0
votes
0answers
50 views

ssh can't connect to CentOS at login screen

I've a server that running CentOS 6.4 final, I tried putty to connect at login screen, it show Network error: Connection refused, but it works while I've logged in to server. Anyone know what's going ...
2
votes
3answers
3k views

sudo: apt-get: command not found. On Debian, SSH

Recently I executed this command: sudo apt-get remove debian-keyring debian-archive-keyring To prevent this such error message: WARNING: The following packages cannot be authenticated! openerp ...
0
votes
2answers
71 views

Command to restore filesystem to state after installation of the OS

How can I wipe all the changes to the filesystem since installing the OS? It's not that I want to destroy the files because they contain sensitive data or anything like that; I just want to start over ...
2
votes
2answers
72 views

High-level user on Media Temple DV managed server (Plesk)

I've recently set up a DV Managed server from Media Temple. I'm not sure if my question is specific to Media Temple, Plesk or Linux in general. I'm open to alternatives but basically what I am trying ...
0
votes
0answers
132 views

On ssh connection the auth.log shows as source IP the external IP of the server instead of the IP of the client

I have a very odd situation with my ssh connection. Every time I connect to my server, whatever is my external ip, the connection have as source the server's external ip. Example Server S.O.: ...
0
votes
1answer
423 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 ...
1
vote
1answer
112 views

What linux server settings allow my long running processes to keep running after the terminal is closed/terminated?

In previous jobs and experiences, I used screen or nohup to run my long running jobs from my terminal screen. Most, if not all of my previous jobs' servers dropped you if it didn't detect any ...
2
votes
0answers
404 views

Can't Install ImageMagick on Centos using Yum

I am trying to install ImageMagick on my dedicated-virtual Centos server for use with PHP. I first ran the following commands successfully: # yum install gcc php-devel php-pear # yum install ...
1
vote
1answer
35 views

Using passwordless ssh on CentOS 6

I have a fresh install of CentOS 6 that I am trying to connect to using ssh without a password. But each time I try to login, I am asked for the password. Here are the commands in order: ssh-keygen ...
1
vote
1answer
888 views

ssh_exchange_identification: Connection closed by remote host on vnx machine (linux)

I changed the password of my linux machine . I was able to login for sometime and after that I am not able to ssh. I am getting the following error: ssh es4042cs -v OpenSSH_5.1p1, OpenSSL ...
2
votes
1answer
156 views

SSH connection timed out. it's not client or server…what now?

I have been using a Linux server via SSH for months, it still works from other locations but for some reason, this week, it isn't working from the office. Putty says "Connection timed out" Is there ...
1
vote
2answers
78 views

What is the difference between lhome and home, and is it causing my SSH key authentication to fail?

I have RHEL running on a system with my account having the root privilege. My home directory is in /lhome/myusername. If I try to add any user their home directory is created in /home/newuser. What ...
1
vote
1answer
156 views

Mount home partition on user login

I got a VPS with a user dedicated to store my files. As i am aware of the current situation with the NSA and many other governments, and my VPS is hosted on a doubtful country i would like to ensure ...
4
votes
2answers
455 views

How to Provide login delay in ssh

I wanted to provide login delay while login through ssh .I tried couple of ways of doing same but couldn't find desired result. I tried steps provided by given link. ...
3
votes
1answer
1k views

Command : must be run from a terminal

I have a shared hosting account, I logged using ssh. when I type for example su I had this output : su: must be run from a terminal Is this error relative to the fact that I don't have sufficient ...
0
votes
3answers
338 views

What are the commands to apply changes made to /etc/ssh/sshd_config?

I have made some changes to /etc/ssh/sshd file and wanted these effects should take place. I know I can run below command for the effects to take place. /etc/init.d/sshd reload But on my box I ...