Learning on how to use the (SSH) in any enviornment [HELP!!]


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Learning on how to use the (SSH) in any enviornment [HELP!!]
# 1  
Old 07-29-2013
Learning on how to use the (SSH) in any enviornment [HELP!!]

INTRODUCTION:

I'm taking a LINUX class at school and I would like to learn more about logging into another computer remotely using the secure shell (ssh). I would like to learn to do this with the computers in our lab as a self initiative so I can eventually share files between my own computers.

PROBLEMS I'M HAVING:

I'm familiar with operating inside terminal on my macbook and have researched using the (ssh) from a mac to a mac. However, the computers at school are slightly different and it's hard knowing what specifics to research because of these differences.

SPECIFICS OF THE COMPUTERS IN THE LAB @ SCHOOL

There are 12 hp computers in the lab. The computers are setup differently than other computers on campus specifically for the purposes of this class. We all created a profile and installed "slackware" on them to setup the virtual machine in using the LINUX box. When terminal starts up we are in the "bash".

I would love to just do this from my own mac book since I use it for the class but I'm not familiar with what I would have to do to access those certain computers in the lab. I don't think that would be a good idea either. Therefore, I thought it may be easier just using the computers in the lab.

I realize this can be an extensive troubleshooting process and I don't expect anyone to write out every step. Errors will occur I'm sure so I would much rather do this a better way so I actually learn what I'm doing. Can someone help me get started in the right direction. Any documentation or resources would be appreciated.
# 2  
Old 07-29-2013
Using SSH is fairly easy. You just have to have IP connectivity between the boxes. To check if that is the case, you should get IP address from the target machine (for example by executing ifconfig -a or ip a on it), then using ping <TARGET_IP>. If the command will show packets being received, then you can move to running: ssh <USERNAME>@<TARGET_IP>.
# 3  
Old 07-29-2013
Do I have to be on the target computer to run that command and find it's IP and username or can I do all of it from the computer I'll be on? What is the command in looking up the username?
# 4  
Old 07-29-2013
You have to be on the target machine. For username/password I'd ask whoever installed that box.
# 5  
Old 07-29-2013
Executing the steps you mentioned, could I do this from my macbook with another computer in the lab as the "target" or is this where it starts getting more difficult.
# 6  
Old 07-29-2013
Which step do you want to execute on your Macbook? If the one checking IP address, then it won't make sense as it will show the IP of your Macbook and not the target machine. You have to get the IP of the target machine somehow. Either get it by executing commands I provided there or ask whoever installed the machine what IP did he/she set there.
# 7  
Old 07-29-2013
When i'm on the target machine I do a whoami and it shows root. I do a hostname and it shows Alien. Which one do I use?

ip a

Code:
inet 10.25.12.204/24 brd 10.25.12.255 schope global etho

Which one of these do I use for the name@ipaddress.

I've tried the follwoing
Code:
ssh root@10.25.12.255

I get the following error
Code:
ssh: connect to host 10.25.12.255 port 22: Network is unreachable

Any ideas?

Last edited by Scott; 07-29-2013 at 11:12 AM.. Reason: Please use code tags
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Learning AIX?

I have a new job where they will expect me to start (as a beginner) to administer using AIX, this will be for a credit card payment company. I understand that there are many flavours of Unix of which AIX is just one. Should I concentrate on just trying to learn AIX or is there some other... (9 Replies)
Discussion started by: henfold
9 Replies

2. Web Development

Learning HTML

I have tried to create a web page browser window. An example, I copied what the book pretty much wanted but get only the header. What should I change? Also Anyone know any good books for this? Many thanks. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Translation/EN" ... (4 Replies)
Discussion started by: N-Training
4 Replies

3. UNIX for Dummies Questions & Answers

Learning VI editor

Hi, Can you give me some good document or link to learn more about "vi" editor. I'm interested to master its short-cut keys and tricks in the VI editor, please help, thank you. (1 Reply)
Discussion started by: Dev_Dev
1 Replies

4. Shell Programming and Scripting

Learning Perl

Folks! Anyone please explain the behavior of this program step by step. Thanks. #! /usr/bin/perl $testfile = "./testfile2"; for ( $i = 1, $i <= 5, $i++) { open ($FILE, ">", $testfile); print ($FILE "Output 1 \n"); close ($FILE); } print "The value of (4 * 2) / 2 is "; print (4 * 2)... (1 Reply)
Discussion started by: huko99
1 Replies

5. Solaris

Learning Solaris

Is possible to learn Solaris 10 from guides for Solaris 9 (3 Replies)
Discussion started by: microbot
3 Replies

6. Programming

learning fortran

Can anyone recommend a very good Fortran online course for unix. It should also cover Fortran X11 programming if possible. I understand this learning cannot be rushed but a course that addresses useful topics sooner is best. If it isn't free, that's okay. (1 Reply)
Discussion started by: gav2251
1 Replies

7. UNIX for Dummies Questions & Answers

learning about pipes!

im trying to figure out how to do the following: using pipes to combine grep and find commands to print all lines in files that start with the letter f in the current directory that contain the word "test" for example? again using pipes to combine grep and find command, how can I print all... (1 Reply)
Discussion started by: ez45
1 Replies

8. Shell Programming and Scripting

Enviornment Variable in B shell (I call it nested variable)

#!/bin/sh APP_ROOT_MODE1=/opt/app1.0 APP_ROOT_MODE2=/opt/app2.0 APP_ROOT=${APP_ROOT_${APP_MODE}} # enviornment variable APP_MODE will be exported in the terminal where # we run the applciation, its value is string - MODE1 or MODE2 # My intension is: # when export APP_MODE=MODE1... (4 Replies)
Discussion started by: princelinux
4 Replies

9. UNIX for Dummies Questions & Answers

learning on my own

can i do this? i am learning this on my own..and from the book..simple unix i am not sure if the syntax would work if statement then statement do or for or while statement done else statement fi.... I dont know how else to explain that...I hope I... (2 Replies)
Discussion started by: jonas27
2 Replies
Login or Register to Ask a Question